Godot 4.x A* Pathfinding and Dynamic Character Control

Years ago my kids and I were working on a small sandbox game based on the SCP universe. We were disappointed that most SCP-type games were just shooters where you were trying to capture monsters, and we wanted something that was more of a simulation game for managing the facilities. Kinda' like The Sims except with more cartoon death.

We got as far as getting the sprite system and character control system to work, along with basic tile-based collision detection and A* pathfinding.

It's neat in that you can select a character with the mouse, control it directly with the keyboard / WASD, or click to set a destination and the character will pathfind its own way to it.

Today I was looking around for some code and ran across it again. Loaded it up, and it still ran. Was fun to tool around with it, so I recorded a quick video and put it up on Github. I had the code up there before, but no screenshots, so it was difficult to tell what it did. Figured I would record a quick video so that people can at least see it.

https://github.com/HanClinto/SimFoundation

MIT licensed -- feel free to borrow any or all of this project if it would be useful to you.

C#, Godot 4.x.

📺 Watch on YouTube