Partial implementation of road deletion
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user