commands, towers, etc
This commit is contained in:
+6
-1
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user