Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Very cool; however, how did you implement the enemy ai / the ability to save and load levels from the editor?

Thanks a lot! The Enemy AI is really simple. Each enemy is either in a pursuing, idle or attacking state depending on how far away they are from the player. The specific distance numbers are random for each enemy.

For the level loading, I have a Grid structure that houses a bunch of Cell structs. I then simply pipe the cells into a file and retrieve them by loading them back into that grid. From there, I just render them in the egine.

Thanks for trying it out!

Oh thanks for answering I always struggled making ai in games. I've been recently working on a way of standardizing it with a decision tree approach so it's more manageable but also having different states is an interesting idea as well!