up to building the map

This commit is contained in:
2026-06-10 02:32:01 -07:00
parent fa7a6ac176
commit 4032a5ea76
5 changed files with 93 additions and 2 deletions
+24
View File
@@ -0,0 +1,24 @@
package game
import rl "vendor:raylib"
run :: proc() {
rl.InitWindow(640, 480, "Tower Defense")
defer rl.CloseWindow()
rl.SetTargetFPS(60)
world := init_world()
for !rl.WindowShouldClose() {
dt := rl.GetFrameTime()
update_world(&world, dt)
rl.BeginDrawing()
rl.ClearBackground(rl.Color{34, 139, 34, 255})
render_world(&world)
rl.EndDrawing()
}
}