Pacman

Play Pacman, draw your own enemies, create your own levels, adjust configurations, have fun!
1.9K Downloads
Updated 6 Jun 2017

View License

Pacman Suite
Play pacman.
Make your own blinkies, pinkies, inkes and clydes and tweek the AI to make it unbeatable.
Draw your own labyrinths and play them.
Each ghost has its own personality comparably to the original.
Pacman AI is included, but stupid. You can create your own easily.
Have fun!
Controls:
- use arrow keys or "WASD"-keys to control pacman
- press "P" to pause
- press "T" to show target tiles of each ghost
- press "Q" for auto play
- press "H" to show highscores
- press "M" to show menu
- press "U" to toggle sounds on or off
Ghost Creator:
- Paint each frame for every ghost individually
- Choose color for each ghost
- left click (+hold down and drag) for painting pixels
- right click (+hold down and drag) for erasing pixels
- saving will create a new .mat-file with complete struct-array that can again be loaded into the game
Level Creator:
- Draw your own level
- left click (+hold down and drag) for painting walls
- right click (+hold down and drag) for removing walls
- use the "pseudo wall"-checkbox for creating coin-free zones inside the level (pacman can still go through these areas)
- don't forget to click the "Valdate"-Button before saving!
- saving will create a new .mat-file with complete struct-array that can again be loaded into the game

Cite As

Markus Petershofen (2024). Pacman (https://www.mathworks.com/matlabcentral/fileexchange/62160-pacman), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2016a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Graph and Network Algorithms in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
3.81.0.0

- coin sound improvements

3.44.0.0

bug fixes
improved Labyrinth Creator.
created labyrinths are not playable yet (!)

3.43.0.0

Level designer is getting there

3.42.0.0

improved and adjustable AI

3.41.0.0

less bugs than before
more comments than before

3.8.0.0

- smoother sounds
- pills can now be moved in the Labyrinth Creator
- music icon and sound management improvements
- sounds implemented
- fixing minor issues

3.7.0.0

- High Score implemented
- graphics update
bug fixes

3.6.0.0

- pacman Ai included
- try creating your own AI in "pacmanAI.m"
unique ghost behaviors according to their specific personalities
two ghost modes: chase and scatter
show individual ghost target tiles by pressing "T"

3.5.0.0

Levels created by the Level Creator can now be loaded into the game.
minor improvements and bug fixes
minor bug fixes
small changes and bug fixes

3.4.0.0

ghosts go in and out of their home smoothly

3.3.0.0

Lessons learnt:
- use MarkerType '.' instead of 'o'
- rather dno't use MarkerSize > 10
-> pills are now patches

3.2.0.0

game menu implemented

3.1.0.0

fruits updated

3.0.0.0

fruits added
PacmanCreator.m added

2.310.0.0

bug fix

2.31.0.0

bug fixes

2.11.0.0

minor bug fixes

2.3.0.0

Integration of "Pacman Ghost Creator"

2.2.0.0

simple - simpler - simplest - my AI

2.1.0.0

levels included

2.0.0.0

completely new structure
lives and levels are to be added soon

1.0.0.0