Pathfinding and map loading.
I’d love some feedback on the soldier sprite as I’ve spent about an hour making it and I don’t know if any of it is recognizable.
Drawing small stuff is so much harder, I had to have it fit in a 40×40 tile.
He is holding a plasma weapon (hence the green ammo box-thingy) but I don’t know if people will understand it’s a weapon because it looks like a black blob with some green on it.
I got A* and patrolling working.
Entities each have a patrol, a list of waypoints with no obstacles between them, that they follow. When they need to deviate from this patrol they start to use A* until they get back to it.
I’m loading the map from a png with each pixel corresponding to a 40×40 tile with the color corresponding to the tile type.
The code is not very interesting so far, pretty standard stuff. I’m gonna get to the stealth part soon which will be more interesting.
Here is a video: A* and patrolling
