Programming Project, day 21
|
I changed the AI states completely. The “Farming” state is now called the “Roaming” state. It checks tiles in certain directions for levelobjects that are destructable, places bombs and walks around the map. I need to make it a bit more random because the AI favors moving in certain directions over other ones right now. I made another state called “Flee” state which runs away from nearby bombs until at a “safe” distance from any bomb, then returns to the “Roaming” state. This is a picture of how I want the AI to work when it’s complete (some of it is unnecessary but most of it will stay). |
