Initial commit: base-road-network copy

This commit is contained in:
2026-04-26 15:51:04 +02:00
commit 07b8f0ecb1
9 changed files with 559 additions and 0 deletions

29
src/main.odin Normal file
View File

@@ -0,0 +1,29 @@
package main
import rl "vendor:raylib"
import "common"
main :: proc() {
rl.SetConfigFlags({.MSAA_4X_HINT, .WINDOW_HIGHDPI})
rl.InitWindow(common.WIDTH, common.HEIGHT, "Base Road Network")
defer rl.CloseWindow()
rl.SetWindowMonitor(common.MONITOR)
rl.SetTargetFPS(rl.GetMonitorRefreshRate(common.MONITOR))
sim: Simulator
defer deinit(&sim)
for !rl.WindowShouldClose() {
rl.BeginDrawing()
defer rl.EndDrawing()
pos := rl.GetMousePosition()
handle_input(&sim, pos)
update(&sim, pos)
draw(&sim, pos)
}
}