PAC-MAN in AppleSoft BASIC 

Philip Lord has introduced a version of Pac-Man in AppleSoft BASIC. The game is a text based version of the popular arcade game. While this may excite many Apple II fans, this game at the moment is only for emulators as it is absolutely too slow to run on a normal Apple II at 1 MHZ.

However, the game does run and plays actually quite well for the Apple II fan running either Applewin or Virtual II.

Notes from the Author:

After countless prompts with ChatGPT and Gemini, and plenty of hands-on debugging, I managed to build a fully playable Pac-Man clone for the Apple II—entirely in AppleSoft BASIC, using only text mode. The twist? On real Apple II hardware it runs far too slow, so it’s best enjoyed in an emulator like Virtual ][ for macOS with the speed turned up. My aim was to make it as fun and faithful as possible while sneaking in simple animations: a spinning ‘$’ bonus, pulsating power pills, and ghosts that visibly shift during frightened mode to show time running out.

Highlights

  • 19×15 maze, fast and clean gameplay
  • Arcade-inspired ghost AI with chase, scatter, and frightened states
  • BFS-based logic giving each ghost a distinct “personality”
  • Power pellets that flip the hunt in your favor
  • Smooth HUD updates and level progression
  • Multiple mazes (press 2 to switch)
  • Tunnel shortcuts, ghost home, and bonus items
  • Three speed/difficulty settings
  • Custom key controls
  • High score tracking
  • Press 1 to quit

Downloads

The Applesoft based Pac-Man is available from the GitHub page at:
https://github.com/Neoncluster/Applesoft-PACMAN

Author: A.P.P.L.E.
The A.P.P.L.E. Website is run by the Apple Pugetsound Program Library Exchange Users Group and is open to all Apple and Macintosh fans and their friends.