So still not super impressive but the agent will now move towards either food or water if it is hungry or thirsty respectively. If it doesn't know where both are it will wander around until it finds them both. Although it will go to water if it is thirsty even if it doesn't know where the food source is of course.
Right now it simple moves directly towards what it wants even if there is something blocking the path. So that will be my next goal, to give it path finding abilities. That will most likely take me longer than this did. Although I have created A* path finding algorithms before so the real challenge will be to create nodes for it to use and the weights to give them. I am going to have the agent dynamically create its own nodes which will definitely make things more challenging.
Wish me luck!
Right now it simple moves directly towards what it wants even if there is something blocking the path. So that will be my next goal, to give it path finding abilities. That will most likely take me longer than this did. Although I have created A* path finding algorithms before so the real challenge will be to create nodes for it to use and the weights to give them. I am going to have the agent dynamically create its own nodes which will definitely make things more challenging.
Wish me luck!