There´s a reason why DK doesn´t allow an imp to abort it´s path. You need to do a lot of raycasting and tracing for each kind of situation. Cause the Game Mechanic is really complex. I made 48 different wall models for each situationĬreating a DK Game is not that easy. ![]() And the 3 Imps are send to the next block beside the destroyed one - or another one if there´s no block beside the last.Īnd as a second thing, i make a surrounding-check for all blocks around the destroyed one, to update their modelfile to fit the hole (autotile system). When the Blocks HP are equal or below 0, the block gets destroyed, the switch sets to FALSE. If one of those 3 saved imps reaches the block (by checking distance), it starts digging. So, selecting a block means i fill up the array (with up to 3 idling imps), create a path (A*) for them to reach the block (a normal block wich can be destroyed, has 600 HP and a Power of 1, wich means a normal imp with 10 strength points can do 10 damage points). his array contains a subarray with up to 3 spaces for 3 imp GameObjects, the XY Coordinates of the Block that needs to be digged out, and a bool - wich holds if the block is still alive or not. I made a "work_todo" array, wich stores the jobs imps need to do. May be one of you could point me out int he right direction as to how to handle that process the right way, how would you do it ? Or may be the opposite : the player builds " empty space with walls ? ( but in that case i am not sure how to handle it when the player is building rooms instead of straight tunnel.) I was wonderign the best way to to achive that : A grid system with all the blocks at the beginning, the player simple destroys them ? ( but i am afraid that this method will be real hard on the AI Pathfinding ? ). The stage i am at exactly is : the player click the block, it destroys the block. And i would need some advices on how to proceed. I am at the stage where i need to figure out how to make the level basically. If any of you of you remember that game : Dungeon Keeper, i am trying to re-make it in unity ( learning java scripting at the same time ).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |