15 lines
320 B
Go
15 lines
320 B
Go
package renderer
|
|
|
|
import (
|
|
"pacman/engine/render"
|
|
"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) {
|
|
render.DrawTile(x+tile_x, y+tile_y, maze.At(tile_x, tile_y))
|
|
}
|
|
}
|
|
}
|