Pacman (with a twist)!
Hello everyone!
I decided to fool around for a couple evenings and decided to make a janky version of Pacman, and here it is! Named Macpan because it was made on a Mac, this file resembles Pacman, but has its own twist. Type help Macpan to see a detailed description. I think I've handled nearly all of the bugs, with the exception of having to press keys AFTER the game to undo the stacked pauses (also, an empty figure may appear); however, this DOES NOT affect gameplay, so I decided against trying to figure it out. Also, the movement is based off of GUI buttons rather than the arrow keys (can be changed, but I decided to go with buttons), and you'll find that the ghosts pause their movement when you do, which is sort of a handicap for having to use buttons rather than arrow keys! To reiterate, this is a janky-for-fun project, so don't expect elegant coding! Also, I didn't think it mattered too much, but I can always include number of dots "eaten" in the win/loss summaries, but that's left out for now.
Hope you all enjoy, please refrain from plagiarizing the entirety of this code (looking at you students' with final projects)!
Cite As
John Chilleri (2024). Pacman (with a twist)! (https://www.mathworks.com/matlabcentral/fileexchange/61474-pacman-with-a-twist), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxTags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 | Added picture and changed description. |