How mohammad-abu-aresh/pacman works
This is a Python, Minecraft-themed Pac-Man game. The principal workflow is launch and configuration, menu-driven session creation, procedural maze construction, entity play, and level or game-state progression; the UI also supports leaderboard interaction. The graph preserves documented features such as scoring, pellets, monster AI, hardcore abilities, and multi-level play, although their implementation details were not all sampled. Some README architecture claims do not match the supplied tree, so those components use existing enclosing paths and uncertain links are omitted or marked unverified.
Main entry points: gameengine.py Game engine · gameplay.py Gameplay session · creature Monster personalities · creature.py Creature control
Components 19
Game runtime
- CLI launcher
pac-man.py - Game engine
game/gameengine.py - Configuration
game/configLoader.py - Game modes
game/game_modes.py
Maze and levels
- Gameplay session
game/gameplay.py - Maze adapter
game/block.py - Maze generator
- Pellets and scoring
game/gameplay.py
Entities and behavior
- Creature control
game/creature/creature.py - Player entity
game/creature/player.py - Monster base
game/creature/monster.py - Monster personalities
game/creature - Pathfinding
game/creature/bfs.py - Monster AI
game/creature/algo_monster.py - Hardcore abilities
game/creature/abilities.py
Interface and assets
- Screens and leaderboard
game/screens.py - Image assets
photos/loderimages.py - Highscore storage
highscores.json
Other components
- Player
Connections 21
- Player → CLI launcher: launches
README.md - CLI launcher → Game engine: starts
- Game engine → Screens and leaderboard: creates
game/gameengine.py - Game engine → Gameplay session: creates
game/gameengine.py - Game engine → Game modes: updates state
game/gameengine.py - Game engine → Image assets: uses display
game/gameengine.py - Game engine → Highscore storage: saves scores
game/gameengine.py - Game engine → Configuration: uses settings
- Gameplay session → Maze adapter: adapts maze
game/gameplay.py - Gameplay session → Maze generator: generates maze
game/gameplay.py - Maze adapter → Maze generator: reads maze
game/block.py - Gameplay session → Creature control: creates entities
game/gameplay.py - Gameplay session → Pellets and scoring: manages gameplay
game/gameplay.py - Creature control → Player entity: creates
game/creature/creature.py - Creature control → Monster personalities: creates
game/creature/creature.py - Monster personalities → Monster base: inherits
game/creature/monster.py - Monster AI → Pathfinding: uses search
game/creature/algo_monster.py - Monster personalities → Monster AI: delegates AI
game/creature/algo_monster.py - Monster personalities → Hardcore abilities: uses abilities
game/creature/skeleton.py - Screens and leaderboard → Highscore storage: displays scores
- Screens and leaderboard → Image assets: renders assets