The Lyberinth story - NPC and enemy units (Patreon)
Published:
2021-09-05 18:12:43
Imported:
2024-03
Downloads
Content
This weekend I've managed to add NPC and enemies. And got the enemies moving around.
From the look of it, the code needs lots of abstraction to allow using the same code for enemies, NPC and player units and I'm facing a big challenge when it comes to controlling the enemy behavior. Moving them around randomly is easy, but spotting the player and attacking him is a whole other beast.
Download the code from the attachment and give it a try