refactor rendering of hud

This commit is contained in:
2026-06-14 00:44:38 -07:00
parent 7d25c20110
commit 89cae24c03
3 changed files with 34 additions and 26 deletions
+9
View File
@@ -54,3 +54,12 @@ can_build_at :: proc(world_map: ^Map, gx, gy: int) -> bool {
return world_map.tiles[gy][gx] == .Build
}
render_map :: proc(world: ^World) {
for y in 0 ..< MAP_H {
for x in 0 ..< MAP_W {
c := tile_color(world.world_map.tiles[y][x])
rl.DrawRectangle(i32(x * TILE_SIZE), i32(y * TILE_SIZE), TILE_SIZE, TILE_SIZE, c)
}
}
}