Partial implementation of road deletion

This commit is contained in:
2026-04-25 13:16:50 +02:00
parent ac78f526df
commit edce3f67a6
6 changed files with 153 additions and 22 deletions

View File

@@ -12,7 +12,7 @@ main :: proc() {
rl.SetWindowMonitor(common.MONITOR)
rl.SetTargetFPS(rl.GetMonitorRefreshRate(common.MONITOR))
sim := init()
sim: Simulator
defer deinit(&sim)
for !rl.WindowShouldClose() {
@@ -20,6 +20,7 @@ main :: proc() {
defer rl.EndDrawing()
pos := rl.GetMousePosition()
update(&sim, pos)
handle_input(&sim, pos)
draw(&sim, pos)