A while back I followed a few tutorials on creating a pacman game in python using pygame. I took the resulting code from these tutorials and added several enhancements. Unfortunately I haven’t had enough time to continue with the code, so hopefully this code is of use to someone learning python to play with and further enhance (Who knows might end up feature complete!).
Enhancements over original code
- start menu
- multiple ghosts
- not having to hold down a directional button constantly
- can press a direction before a turn and will turn at next opertunity (like real pacman)
- probably more stuff that I’ve forgotten about by now
Source Files – The source and files, to run the game just run “python PyMan.py”