The follwoing is a competition in speed-coding. Your task will be to implement a Pacman prototype. Mind you, not the entire Pacman game.
Your prototype game should have the following features:
- display a pacman level (one is enough)
- let the player move pacman around (keyboard input is enough)
- move 4 different-coloured ghosts around, and let them pick new directions when they get to an intersection.
- eat dots, and finish the game if you ate them all
- eat pills, and afterwards be able to eat ghosts for some time
- animate pacman and the ghosts,
- draw ghosts differently when pacman can eat them.
- pacman dies when he collides with a ghost and isn’t “on the pill”
- ghosts disappear when pacman is on the pill
Everything else is unnecessary. No need to count score, no need to make the ghosts smart, resurrect dead ghosts, implement fruit, death animations or any other UI. No sound required, either.
You are free to use any language you like, on any hardware and with any library that is convenient. There is a set of assets you can use that contains some bitmap sprites and the level data. You may modify these assets as much as you like.
Assets in this zipfile:
- pac.bmp, 3 sprites that make up pacman’s animation in one direction
- level1.bmp, this is how the level should look.
- levelsprites.bmp, 8×8 sprites that the level is made of.
- ghost.bmp, a ghost moving in four directions (see eyes)
- frown.bmp, ghosts that can be eaten
- level1.dat, the 28×32 cells that make up the first level. each cell is one byte containing an index into levelsprites.bmp, and they are written row by row from top to bottom
To win, you must be the first person to email me a .zip file containing the source, assets and compiled executable (if you’re not using an interpreted language) of your prototype that fulfills all the requirements above.