WORKING PATHFINDING ON THE GRID!
Created new assets so the game looks complete now!
You can see the firetruck going from the Fire station all the way to the burning building where it will extinguish it. Yes, it follows the roads as intended and uses the A* algorithm to figure out the best path. And they shoot water out, so visual feedback for everything.
This was super fun as it was the first time I’ve implemented the A* in a video game on a grid that procedurally generated.
The coal power generator, fire station and fire trucks have models now, I think I made them good enough to fit with the game. Police station and healthcare to still be implemented but it’s looking good so far.
This required creating a new services manager, creating a pathfinding script, updating global services and how everything interacts with the fire, and creating reverse pathfinding and small details.
It’s coming together really cleanly now.
Comments 2
Love this update, starting to feel like a real city now!
Can’t wait to see vehicles like cars, buses, and trains
Sign in to join the conversation.