Pac-Mad
- Year
- 2017
- Publisher
- Freeware (premiered at Ironia 2017)
- Type
- Game
- Category
- Maze game (vertically scrolling Pac-Man variant)
- Developer
- Wojciech Bociański (bocianu): code and graphics; Piotr Lis (LiSU): music
- Language
- Mad Pascal (with MADS and RMT)
- Requirements
- Atari XL/XE with 64K; joystick. Disk image or XEX file; boot with BASIC off
- Tags
- maze, pac-man-style, homebrew, mad-pascal, open-source, ironia, poland, 2017, rmt
Overview
Pac-Mad is a modern take on Namco's Pac-Man by the Polish programmer Wojciech Bociański (bocianu), with music by Piotr Lis (LiSU). It changes the familiar game in two big ways. Each board is a tall map that scrolls vertically, much larger than one screen. And you don't have to clear every dot: once you've eaten enough "food", an exit starts blinking and you race to it.
The game premiered at the Ironia 2017 party in Poland in August 2017 and took second place in the game competition. That party build had only ten unbalanced boards. Version 1.0, released on 19 December 2017 through the AtariOnline forum, added 20 more for a total of 30, rebalanced the difficulty curve, and added bonus fruit, separate AI for each ghost, a level-select option, a cheat mode and new sound effects.
Pac-Mad is also a showcase for Mad Pascal, the Free Pascal-style cross-compiler for the 6502. Bociański published the full source and a browser-based level editor, and the code became a standard example on the Mad Pascal forums of how to write a fast, full-screen game in a high-level language.
Gameplay
- Food and the exit. A counter at the top shows how much food is left before the exit opens. Each map sets its own quota, so you rarely need every dot. When the counter reaches zero the exit blinks, and touching it ends the level.
- Ghosts come out of spawners placed around the map, up to ten per board. Ghosts that fall far behind you vanish and respawn later, so the map never feels empty.
- Power pills turn the ghosts blue for a time set by each level. They flash before turning back. Eating ghosts in one power-up scores 100, 200, 300, 400 and then 500 points each.
- Bonus fruit appears at random in three varieties and disappears again after a few seconds.
- Lives. You start with three and earn an extra life every 10,000 points.
Each ghost has an AI level, set per board in the map editor, from fairly aimless to relentless. The author's own description of the top setting, AI 9, is "deadly ninjas". The first boards are gentle and the last ones are tough.
Controls
- Joystick steers Pac-Man.
- On the title screen, SELECT sets the starting level, so you can continue from a later board.
- A key sequence typed on the title screen toggles a hidden cheat mode with 99 lives.
At game over, the screen shows your score in digits and also as a DataMatrix code (the changelog calls it the "HSC matrix"). The code is meant for the Hi-Score Cafe online score table, which keeps a Pac-Mad leaderboard.
Technical notes
The source shows how much a Mad Pascal game can take over the machine. Pac-Mad switches off the operating system, installs its own vertical-blank and display-list interrupts, and uses the RAM under the ROMs above $A000 for level data, fonts, text and the Raster Music Tracker player and tune. The maze is drawn in a character mode with custom fonts, and Pac-Man and the ghosts are player/missile sprites. Each board is 21 tiles wide and 100 tiles tall.
Because data is loaded into $A000–$BFFF at start-up, BASIC must be off when the program loads. Boot with OPTION held on an XL/XE, or turn off BASIC in your emulator. Otherwise the title screen fills with garbage.
Versions and ports
- Ironia 2017 party version (August 2017): 10 boards. It came second in the game competition.
- Version 1.0 (19 December 2017): 30 boards and the changes listed above.
- A community level editor runs in a web browser.
- Bociański later ported Pac-Mad to the Neo6502 retro computer.
Playing it today
Download the XEX or ATR and run it on any 64K XL/XE, or in Altirra or Atari800 with BASIC disabled. The source code is on GitLab under bocianu/PacMad, and it is a good starting point for anyone learning Mad Pascal.
Credits
- Picture: Pac-Mad in play. The maze is only partly visible because each board scrolls vertically. — Screenshot from bocianu.atari.pl (Wojciech Bociański)
- bocianu.atari.pl — Pac Mad (release date 19.12.2017, Ironia 2017 2nd place, 30 maps, map editor; screenshots) — Screenshot from bocianu.atari.pl (Wojciech Bociański), 2017
- GitLab — bocianu/PacMad (source, README, changelog v1.0, TODO) — gitlab.com
- Gury's Atari 8-bit Forever — Pac-Mad (credits, Ironia 2017, references) — Gury (Atari 8-bit Forever portal), 2017
- AtariAge forum — Games in Mad Pascal (Pac-Mad release, editor and Hi-Score Cafe links, author on ghost AI levels; Neo6502 port) — AtariAge forum members
- AtariAge forum — Mad Pascal thread (author on switching off OS and using RAM above $A000; BASIC-off issue; build memory map) — AtariAge forum members
