Pac-Man Evolution

Overview

Pac-Man Evolution is a modern recreation of the classic arcade game featuring procedurally generated mazes and intelligent ghost AI powered by trained neural networks. Developed in C++17 using the CRM64Pro GDK, this project showcases advanced AI game development techniques by combining genetic algorithms with neural networks to create adaptive and cooperative ghost behaviors.

The game offers two distinct gameplay experiences: Standard mode with classic ghost behavior rules, and Evolution mode featuring neural network-driven ghosts trained over 400 generations for enhanced challenge and strategy.

Pac-Man is a trademark of Bandai Namco Entertainment. This is an independent game inspired by the original concept and is not affiliated with or endorsed by Bandai Namco.

PacMan Evolution PacMan Evolution PacMan Evolution

Features

Game modes

  • Standard: Classic ghost behavior rules faithful to the original arcade experience.
  • Evolution: Face off against neural network-trained ghosts that employ advanced strategies, cooperative hunting patterns, and emergent behaviors developed over 400 generations of genetic evolution
  • Workbench (developers): Experimental training environment for creating, testing, and evolving custom ghost behaviors.

Neural network AI

  • 4 trained ghost agents with distinct personalities and hunting strategies.
  • Genetic algorithm training: Evolved over 400 generations to optimize ghost performance and cooperation.
  • Cooperative intelligence: Ghosts learn to work together, using coordinated tactics to trap the player.
  • Customizable AI: Ghost “brains” stored as XML files can be exported, shared, and modified.
  • Training system: Integrated development environment for evolving new ghost behaviors with custom neural network architectures.

Procedural generation

  • Dynamic maze creation: Every game features a unique, balanced maze layout (algorithm adapted from Shaun LeBron’s JavaScript implementation).
  • Deterministic generation: Ensures fair, playable mazes with optimal pellet distribution.
  • No repeated layouts: Endless variety keeps gameplay fresh and challenging.

Classic elements

  • High score tables for each game mode: Compete for the top spot.
  • Power pellets: Turn the tables on your pursuers.
  • Authentic mechanics: Faithful controls, scoring system, and gameplay feel.

Technical specifications

  • Modern C++17 codebase built on the CRM64Pro GDK framework.
  • Cross-platform: Native support for Windows 7/10/11, Linux (Kernel 4.18+), and macOS 10.13+ (x64 and arm64).
  • Open source: Complete C++ source code available under the zlib license.
  • Hardware-accelerated rendering: Smooth 60 FPS performance at 1024×768 resolution with minimal resource usage.
  • Audio system supporting high quality playback.

Development and contributions

The game is functionally complete and features a sophisticated AI training system, but is awaiting final graphics, music, and sound effects. We welcome contributions from artists, musicians, and sound designers to help complete the project.

Contributors can use EditorC64 to enhance game resources:

  • Graphics: Enhanced sprite artwork, maze tiles, UI design, animations.
  • Music: Background tracks for menu and gameplay.
  • Sound Effects: Pellet collection, power-ups, ghost interactions, menu feedback.

What contributors get:

  • Special credit in the game’s credits.
  • Permission to use the project in their personal portfolio.
  • Recognition on the project website.

For developers and AI enthusiasts interested in AI and game development:

  • Access the workbench mode by compiling from source.
  • Train custom ghost behaviors using the integrated neural network system.
  • Export and share ghost “brains” as XML files with the community.
  • Experiment with genetic algorithm parameters and neural network architectures.
  • Analyze training performance and evolution progress in real-time.

Download

Last version: v1.0.2 (18-December-2025)
ChangeLog | Roadmap | zlib license

Binaries
x86 64bits binaries for supported operating systems.
Source code
Source code and make files for VS2022+ and GNU C/C++.
Previous releases
Get access to all releases repository.