Hi, guys. I just one to make a short devlog about what I was doing recently.

So I’m working on a road signs system for my game Traffic brains. I want the player to be able to easily divert traffic and optimize traffic flow through some intersections.

When I started, I thought, How hard can it be. I will just place some roadblocks in my path-finding algorithm. So yeah, needless to say, how wrong I was. I was stuck with this feature for 3 weeks.

So many corner cases. Sometimes pathfinding algorithm will get stuck in the loop or just can’t find the path, even tho it is clearly visible. At least for me.

At first, I thought I don’t need to visualize how my algorithm works. I will debug my code with breakpoints. Just nope. I’m not a genius. I forget numbers fast and unless I’m drawing everything on the paper, not gonna happen.

So I’ve invested some time to make crude visualization, which saved me a ton of time trying to figure out what the hell is happening.

So here are the results of my new road signs feature. I’m pretty happy with how it works. It really adds a new dimension to the gameplay. And sparks new ideas for new levels.

There are more types of road signs. You can increase the speed of the traffic on the open road or bypass. Block road altogether or just limit trucks’ movement.

Categories: Devlog

Arunas Pangonis

Solo game developer. Creating game for Apple platforms using C++ and OpenGL.


Leave a Reply

Your email address will not be published. Required fields are marked *