YPyagizpesker.com

← All projects

06 / 06

TrafikSim

A traffic simulation built for fun.

What it is

A small traffic game I made in Godot, just for fun. Cars keep coming from every direction, and you run the lights.

How it plays

  • Three signal groups: a north–south boulevard, an east–west street and a diagonal avenue, plus turn lanes.
  • Every switch goes green, then yellow, then all-red before the next group gets green, like a real signal controller.
  • Cars stop at red lights and behind other cars, and a patience bar drains while they wait.
  • Every car that makes it through earns money; let five of them run out of patience and the game is over.

How it’s built

Godot 4.7 and GDScript, with separate scripts for the cars, the intersection’s state machine, lane data, map presets and the road renderer.