Sabotage
Definitive 1:1 Apple II reconstruction of Mark Allen's 1981 air-defense classic. Defend your bunker turret against relentless waves of helicopters, high-altitude bombers, and paratroopers building human sabotage pyramids.
History & Legacy
Sabotage is a landmark 1981 fixed-shooter for the Apple II (48K RAM), programmed in 6502 assembly by Mark Allen and published by On-Line Systems (the studio founded by Ken and Roberta Williams that would soon become Sierra On-Line). Before Sabotage, Allen had already made a mark on the Apple II ecosystem—both with his earlier arcade shooter Stellar Invaders and by co-developing the 6502 Pascal interpreter at UC San Diego that became the foundation for Apple Pascal.
With its crisp Hi-Res graphics, responsive paddle-and-keyboard turret aiming, and escalating wave pressure, Sabotage became one of the defining action games of the early personal computer era. Its design sparked a wave of clones and spiritual successors across home computers and consoles, most notably Paratrooper (1982, MS-DOS) and Commando Raid (1982, Atari 2600).
Gameplay & Scoring
You command a stationary anti-aircraft gun turret anchored at the center of the ground. Before each run, the title prompt asks whether you want Steerable Shells (Y / N)—choosing Y lets turret movement curve active shells mid-flight, while N locks every shot to a straight ballistic path. Every shell you fire deducts 1 point from your score, turning accuracy and trigger discipline into a core survival mechanic:
- Helicopters (5 pts): Sweep across the sky at progressively lower altitudes, deploying paratroopers. Destroying a helicopter scatters shrapnel that can chain-destroy nearby aircraft and troops.
- Paratroopers (2 pts): Shoot a paratrooper directly for 2 points, or clip the parachute canopy (0 pts on hit) to rip the chute and send the trooper plummeting to the ground—splatting on impact for 2 points.
- High-Altitude Bombers & Bombs (5 pts / 25 pts): Fast jets periodically streak across the top of the screen, releasing bombs that home in on your bunker—intercepting a falling bomb mid-air awards 25 points.
- The Sabotage Threat: The round ends if a bomb strikes your turret, a paratrooper lands directly on top of it, or four paratroopers land on either side to form a human pyramid, climb your bunker, and detonate a sabotage charge.
Under the Hood
This browser reconstruction is built directly from Andy McFadden's 6502bench SourceGen disassembly of Sabotage and runs natively in JavaScript, HTML5 Canvas, and Web Audio with no emulator core or third-party dependencies:
- Exact 6502 Logic & Ballistic Physics: Reconstructs the original 1981 assembly routines 1:1—including the 53-position
SHELL_DELTAStrigonometric trajectory table, steerable shell toggle ($40a6), flier spawning ($634f), paratrooper drop & fall counters ($5b60), distinct canopy vs. body hitboxes ($6063/$6045), walking sabotage stack ($5cbe), and cascading debris explosions ($5552). - Authentic Apple II Hi-Res & CRT Phosphors: Emulates the 280 × 192 Hi-Res framebuffer with 7 horizontal dots per byte and the
$80high-bit color phase shift that produces Apple Green, Violet, Orange, and Blue via NTSC subcarrier interference—plus switchable P1 Green phosphor, P20 Amber phosphor, Monochrome B&W, and optional CRT scanlines. - 1-Bit
$C030Speaker Audio (Authentic Mono + Optional Polyphony): Models the physical Apple II$C030speaker toggle with 1.020484 MHz cycle timing (15 * (delayCount + 1) * 0.98μs), 3-sample exponential impulse decay, and a 140 Hz–4200 Hz bandpass filter tuned to the Apple II's internal 2-inch speaker—defaulting to authentic single-channel Apple II mono, withAtoggling modern polyphony so helicopter rotors, bomber drones, falling bomb whistles, gunshots, chute rips, and explosions play concurrently without cutting each other off. - Automated Arcade Attract Mode: When left idle on the title screen, a heuristic AI takes over the turret to demonstrate lead-angle targeting and paratrooper interception.
- Compact Self-Contained Bundle: Binary lookup tables, bitmaps, sound patterns, and the minified engine are packed into a single ~29 KB self-contained HTML file.
Credits & Historical Links
- Original Game (1981): Mark Allen / On-Line Systems (Sierra Entertainment) (Original game design and code © 1981 Mark Allen / On-Line Systems; browser re-implementation released under the MIT License for archival, educational, and emulation research purposes.)
- 6502 Disassembly Reference: Sabotage Disassembly (
a2-sabotage) by Andy McFadden (fadden), created with 6502bench SourceGen - Hi-Res Color Notes: Apple II Hi-Res Graphics Color Fringe Mechanics by Andy McFadden
- Wikipedia: Sabotage (video game)
- Platform History: Apple II History