More tilemap stuff
This commit is contained in:
@@ -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})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user