Handling different type of bodies
Secret of the Basilisk (prototype) » Devlog
With the entities split into parts (head, body, arms, leg), it was not possible to have different type of entities (wolf, bird, ...). I decide to create a class that handle everything that has to do with the different type of bodies.
function EntityBodyInformation() { this.id = 0; this.name = ""; this.bodyPartCount = 0; // These 3 array could be combined since they are always the same size this.bodyPartName = []; this.bodyPartImageType = []; this.bodyPartOrder = []; this.hittingAnimationName = ""; this.walkingAnimationName = ""; this.idleAnimationName = ""; this.gatheringAnimationName = ""; }
This indicate what type of body parts an entity has, which animation to use and which order to draw each parts. After adding a bird and a dog, this new class works great.
Secret of the Basilisk (prototype)
IDLE, incremental game with a bit of a story.
Status | On hold |
Author | Fluffy Lotus |
Genre | Adventure |
Tags | 2D, Idle, Unity |
Languages | English |
Accessibility | One button |
More posts
- How I'll start developing my new gameJan 04, 2020
- Building up the storyNov 25, 2018
- New quest UINov 08, 2018
- UI TweakingNov 07, 2018
- First version of the new gameOct 27, 2018
- Player stats; 1.3 or 13?Oct 18, 2018
- Battle SimulatorOct 15, 2018
- Starting to implement the story!Oct 09, 2018
- Figuring out what to do with experienceOct 07, 2018
- Working on the UISep 28, 2018
Leave a comment
Log in with itch.io to leave a comment.