commands, towers, etc

This commit is contained in:
2026-06-10 02:32:01 -07:00
parent 2e09dbe65d
commit 114c298219
5 changed files with 65 additions and 4 deletions
+6 -1
View File
@@ -46,6 +46,11 @@ init_map :: proc(world_map: ^Map) {
}
}
}
}
can_build_at :: proc(world_map: ^Map, gx, gy: int) -> bool {
if gx < 0 || gx >= MAP_W do return false
if gy < 0 || gy >= MAP_H do return false
return world_map.tiles[gy][gx] == .Build
}