Pacman
Required files:
rmannotes.sl
shapes.sl
maze.sl
pacman.sl
pacman.rib
This shader uses the "draw_maze" function I wrote to
generate the pacman maze. Maze generation isn't perfect,
but it looks all right. Pellets and pacman can be
added. The parameters to the shader are:
* ---- surface parameters ----------
* width, height: number of maze tiles in horizontal and
* vertical directions
* pellets: draw the pellets (0 - false, 1 - true)
* seed: control the maze configuration
* pacman: position of pacman in [col row]
 |
| width = 5 |
| height = 5 |
| pellets = 1 |
| seed = 14 |
| pacman = [2 1] |
|
 |
| width = 10 |
| height = 10 |
| pellets = 1 |
| seed = 14 |
| pacman = [2 1] |
|
 |
| width = 10 |
| height = 10 |
| pellets = 1 |
| seed = 1092 |
| pacman = [2 1] |
|
 |
| width = 10 |
| height = 10 |
| pellets = 1 |
| seed = 1092 |
| pacman = [7 3] |
|
 |
| width = 10 |
| height = 10 |
| pellets = 0 |
| seed = 1092 |
| pacman = [7 3] |
|