More tilemap stuff

This commit is contained in:
2026-02-15 19:08:58 -06:00
parent b5e07700b0
commit aaf04c9e1a
3 changed files with 8 additions and 1 deletions

View File

@@ -48,6 +48,7 @@ draw_tile_grid :: proc(sheet: ^TilemapSpritesheet, grid: [][]Tile) {
row := grid[y]
for x := 0; x < len(row); x += 1 {
tile := &row[x]
if (tile.type == TileType.NOTHING) do continue
pos := raylib.Vector2{f32(x * int(sheet.tile_width)), f32(y * int(sheet.tile_height))}
draw_tile(sheet, tile, pos, raylib.Color{255, 136, 0, 255})
}