# Gameplay Reference Lighter-weight than the hardware docs — the facts that keep a recreation recognizable as Galaga (MAME parent set `galaga`, Namco rev. B). Sections are labelled **source-verified** (restated from `INPUT_PORTS_START( galaga )` in MAME `src/mame/namco/galaga.cpp`, cross-checked with `mame -listxml galaga` on MAME 0.285) or **community-sourced** (player-wiki consensus, not confirmed against a disassembly — "close enough" unless exact fidelity is required). ## Controls (source-verified) The Namco 51XX custom I/O chip reads two 8-bit ports, IN0 and IN1, one nibble at a time (low nibble, then high nibble of each). All inputs are active-low. | Port | Bit | Input | Notes | |---|---|---|---| | IN0 | 1 | P1 joystick RIGHT | 2-way stick, horizontal only | | IN0 | 3 | P1 joystick LEFT | | | IN0 | 5 | P2 joystick RIGHT | cocktail-side controls | | IN0 | 7 | P2 joystick LEFT | cocktail-side controls | | IN0 | 0,2,4,6 | unused | | | IN1 | 0 | P1 fire | one button | | IN1 | 1 | P2 fire | cocktail-side | | IN1 | 2 | 1-player start | | | IN1 | 3 | 2-player start | | | IN1 | 4 | Coin 1 | | | IN1 | 5 | Coin 2 | | | IN1 | 6 | Service coin | credits without counting on the coin meter | | IN1 | 7 | Test / service mode switch | MAME exposes it as the service-mode toggle | There is no vertical movement; on an upright cabinet P2 shares P1's controls. ## DIP switches (source-verified) Two 8-position banks, labelled by physical bank (MAME's `DSWA` port reads bank SWB and `DSWB` reads bank SWA). Defaults are MAME's, which match the factory settings noted in the driver. **Bank SWA** | Switch | Function | Settings (default in bold) | |---|---|---| | 1–3 | Coinage | 4C/1C, 3C/1C, 2C/1C, **1C/1C**, 2C/3C, 1C/2C, 1C/3C, Free Play | | 4–6 | Bonus life (2, 3 or 4 lives) | 20K+60K then every 60K; 20K+60K only; **20K+70K then every 70K**; 20K+80K then every 80K; 30K+80K only; 30K+100K then every 100K; 30K+120K then every 120K; None | | 4–6 | Bonus life (5 lives) | Same switch positions read differently: 30K+100K every 100K; 30K+150K only; **30K+120K every 120K**; 30K+150K every 150K; 30K only; 30K+100K only; 30K+120K only; None | | 7–8 | Lives | 2, **3**, 4, 5 | **Bank SWB** | Switch | Function | Settings (default in bold) | |---|---|---| | 1–2 | Difficulty (rank) | **Easy**, Medium, Hard, Hardest | | 3 | unused | | | 4 | Demo sounds | Off, **On** | | 5 | Freeze | **Off**, On — halts the game when on | | 6 | Rack test | **Off**, On — stage-advance test | | 7 | unused | | | 8 | Cabinet | **Upright**, Cocktail | There is no "2 credits to start" switch on the Namco set. The Midway set (`galagamw`) repurposes SWB:1 as a "2 Credits Game" option (1 Player / 2 Players) and shifts Difficulty to SWB:2–3; the rev. B board here does not. ## Enemy formation (community-sourced) 40 enemies per stage, arranged in five rows of the top formation: - 4 **Boss Galaga** (top row) — take two hits; the first hit turns them from green to purple. They dive alone, with one or two Butterfly escorts, or descend to fire a tractor beam. - 16 **Butterflies** (Goei) — rows 2–3; the top row supplies escorts. - 20 **Bees** (Zako) — rows 4–5; the most numerous, first to dive. ## Scoring (community-sourced) | Target | In formation | In flight | |---|---|---| | Bee | 50 | 100 | | Butterfly | 80 | 160 | | Boss Galaga, alone | 150 | 400 | | Boss Galaga + 1 escort | — | 800 | | Boss Galaga + 2 escorts | — | 1600 | | Captured fighter (shot as an enemy) | 500 [disputed] | 1000 | | Any transform, individually | — | 160 | | All 3 Scorpions / Stingrays (Bosconian) / Galaxian flagships | — | 1000 / 2000 / 3000 bonus | StrategyWiki lists the captured fighter at a flat 1000; other guides split it 500 stationary / 1000 attacking. The split is followed here as the more specific claim, but it is unverified. Challenging stages: 100 points per enemy hit (max 39 × 100), and 10,000 for a perfect 40. Each complete group of 8 also pays a bonus that grows with the stage: 1000 (1st–2nd challenging stage), 1500 (3rd–4th), 2000 (5th–6th), 3000 (7th onward). Extra lives come from the bonus-life DIP only; none are awarded after 1,000,000 points and the life counter display stops at 8. ## Stage structure (community-sourced) - Stage 3 is the first challenging stage; thereafter every 4th stage (7, 11, 15 …) is one. Between them the three entrance patterns cycle in order (stage 1 = pattern 1, stage 2 = pattern 2; the first cycle skips pattern 3). - Challenging stages: five groups of 8 unarmed enemies fly set paths and leave; the fighter cannot die. Special targets (Dragonfly, Satellite, Enterprise) appear only here. - From stage 4, once per stage a Bee (or a Butterfly if no Bees remain) pulses and splits into three transforms: Scorpions in stages 4–6, Stingrays in the next cycle, Galaxian flagships in the next, then repeating. - Stage badges at the lower right sum to the stage number: denominations 1, 5, 10, 20, 30, 50. The counter is 8-bit; passing stage 255 wraps to "stage 0", whose behavior depends on the difficulty DIP (kill screen). ## Tractor beam and dual fighter (community-sourced) A Boss Galaga occasionally drops to mid-screen and emits a tractor beam. A fighter caught in it turns red, is carried to the top of the formation, and a life is lost. Destroying that Boss while it is *in flight* frees the fighter, which spins down and docks beside the current one: a **dual fighter** with two side-by-side ships, double firepower (two shots in flight per ship, four total) and a wider hitbox. Destroying the captor while it is *in formation* instead releases the captured fighter as an enemy that later dives at the player; if left alone it exits and re-enters with the next stage's last wave. Shooting the captured fighter yourself destroys it (500/1000 points). ## Attract mode (community-sourced) With no credit the game cycles: title screen with copyright; a point-value table showing each enemy beside its formation and in-flight scores (plus the Boss escort values); then a demo play with attract music muted by the demo-sounds DIP. The power-on high score is 20,000 [unverified beyond community reports]. ## End-of-game screen (community-sourced) After the last life the game shows RESULTS: shots fired, number of hits and a hit-miss ratio as a percentage. A single first shot that kills two overlapping enemies followed by losing every life yields a 200% ratio — a well-known oddity and a cheap correctness check. ## Determinism demo: the no-fire bug (community-sourced) On stage 1, kill everything except the two Bees at the far left (or right) of the formation, then dodge for roughly 10–15 minutes. They stop firing, and once killed no enemy fires for the rest of the game (collisions still kill). Accepted explanation: 8 enemy-shot slots, idle ones parked at X = 0; a shot spawned while its Bee is itself at X = 0 is flagged in-use but never moves, so the slots leak until all 8 are dead. Since it depends only on frame-exact input, it is a good end-to-end determinism test. ## What the site should default to (recommendation) - DIPs at MAME defaults: 1C/1C, 3 lives, bonus at 20K/70K/every 70K, Easy, demo sounds on, freeze/rack test off, **Upright** cabinet. - Map P1 only (left, right, fire, 1P start, coin 1); leave the cocktail P2 bits released. Expose Service and Test only in a debug menu. ## Sources (community facts) - https://strategywiki.org/wiki/Galaga/Gameplay and /Galaga/Walkthrough — scoring, formation, badges, entrance patterns, capture rules, transforms, stage 256 - https://en.wikipedia.org/wiki/Galaga — challenging stages, dual fighter - https://www.arcadequartermaster.com/galaga_bosses.html — badge denominations, perfect bonus - https://setsideb.com/the-no-fire-trick-in-galaga/ and https://jasoneckert.github.io/myblog/the-galaga-no-fire-cheat-mystery/ — no-fire bug - https://forums.arcade-museum.com/threads/galaga-high-score-wtf.71293/ — 200% ratio; https://misterfpga.org/viewtopic.php?t=768&start=330 — 20,000 default high score