Day #10 NPCs pathfinding


This is the tenth day on a row working on my game while having 5 exams this past week and having studied for the past two weeks straight. So no regrets. Today I added the foundation to what is going to be the pet NPC. I'll work on sprites tomorrow I think. For now the pet has an idle state in which it'll select a target location and run a function that'll get the path to it. Once the path is selected, the pet goes into the move state, in which it'll add velocity to the pet and move until it reaches the target.

For now I have it moving around randomly but I'll add set target locations for it to go towards when in the correct state.

My plan for the pets it for them to act as obstacles that'll alert their owners of your unwanted entry into their house. If you make too much noise, you'll have to escape.

Files

Day10.zip 4 MB
Apr 10, 2021
Day10Executable.zip 13 MB
Apr 10, 2021

Get Forbidden Entry

Download NowName your own price

Leave a comment

Log in with itch.io to leave a comment.