Devlog #30: 'Apple' item, to lure enemies


Hello,

Today I added a food item that the player can place down, which will lure enemies towards it. As you can see, the detection indicator is orange to show the enemies are going after the apple, but I think I will change that colour later, when I do some proper artwork for this game and decide on a colour palette.

This actually took a lot longer than I thought, because I had to refactor some of the enemy movement code, because it didn't really allow for changing targets, and there were a couple other issues as well. Anyway, it is all done now! (Except in the case where two enemies who are chasing after different targets - as in not just moving randomly - collide head-on with each other, they will get stuck and not be able to move past each other. But that is a problem for the future, I think. I still need to do this bestiary, for now.)

Speaking of, my goal from six days ago was to get the framework of an item system and a bestiary down by Wednesday. So far, it is Tuesday and I only have the item system (though I do want to read some data from JSON in the future, but that shouldn't take too long), but not the bestiary. That will be my task for tomorrow, then, to see if I can start and finish the bestiary. I feel like it shouldn't be too difficult, but let's see how we go.

Check back again tomorrow!

Leave a comment

Log in with itch.io to leave a comment.