1
0
Fork 0
pacman-go/game/renderer/maze.go

14 lines
289 B
Go

package renderer
import (
"pacman/game/world"
)
// DrawMaze - draws the maze.
func DrawMaze(maze *world.Maze, x, y uint8) {
for tile_x := range uint8(world.MAZE_WIDTH) {
for tile_y := range uint8(world.MAZE_HEIGHT) {
DrawTile(x+tile_x, y+tile_y, maze.At(tile_x, tile_y))
}
}
}