Arcade game design toolkit (loops, enemies, scoring, structure)
game-designarcadescoringenemiesmissionspuzzle-design
A reference of design moves for small arcade games, collected from three design sessions:
the "VECTOR" pitch for the ~/dev/game wireframe flight game, the four candidate shapes for
the Scope "Spectral Tuning" game, and the aim-assist tuning in a shooting-gallery poll.
Use it as a menu when a prototype has an engine but no game yet.
Start from what the engine already gives you
Before inventing mechanics, list the engine's unusual assets and make them the hook: - A deterministic, seeded sim makes daily seeds, shareable replays and ghost races nearly free (see Ghost replays for racing and speedrun games, Fixed-timestep game loop for browser games). - An analog input scheme with fine control (deflection caps) can become the skill expression: score "fine control kills" made at low stick deflection with a multiplier. - A look that reads as cheap (wireframe) can be made diegetic: the player sees through a combat display, so enemies are glowing geometry, explosions are shattering line segments, and damage is display corruption (jitter, dropped lines, garbled HUD), which is almost free to render.
Structure: campaign and endless on one spine
Ship a short campaign (12 to 15 missions) and an endless high-score mode built from the same code: missions are named seeds plus scripted spawn tables, endless is the default mode escalating forever, and a daily seed gives everyone the same run.
Enemy roster, ordered by implementation cost
Each enemy should test one skill: - Inert destructibles that shatter into collectible shards (score/currency). - Chaser (slow homing, 1 HP, explodes on contact) in swarms of 10 to 30: tests movement. - Sentry (stationary, slow aimed shots): area denial. - Weaver (fast, corkscrew evasion): the aim test. - Lancer (long straight strafing runs, wide turns): teaches leading targets. - Hulk (big, slow, destructible pods guarding a core): mini-boss. - Gates/rings: route markers, race checkpoints, tutorial path. - Pickups that drift and magnetize when close: risk versus reward. - A finale boss that inverts the visual language (a wireframe so dense it reads solid) and sheds layers as it takes damage.
Difficulty ramp and fairness in an endless dodger
From a three-lane dodger for phones (tap a side to hop a lane, rows of blocks scroll down):
- Ramp with a saturating curve, not a line.
ramp = 1 - exp(-rows_passed / 70)rises fast at first and levels off, and one number drives everything: speed goes from 4.8 to 10.2 lane widths per second, the gap between rows from 0.68 s to 0.36 s. The game gets hard quickly but never becomes physically impossible. - Measure in the game's own units (lane widths from the player), not pixels, so tuning holds on every screen.
- Guarantee a way through, and bound what it demands. Generate each row knowing the previous gap: once rows arrive faster than about 0.5 s apart, never require two hops between consecutive rows. Unfair deaths end a run's appeal faster than hard ones.
- Prove fairness with a bot that has human limits. A unit test plays the pure game logic with a bot restricted to a human reaction delay and hop rate, across 150 seeds for 400 rows. If the bot dies, the generator made something unfair. A second test checks that an idle player does crash.
- Collectibles that punish skipping: orbs raise the multiplier (to x8) and letting one go by resets it, which pulls the player out of the safe lane.
- Mark progress: a new color and a "speed up" flash every 20 rows.
- Grace periods: hold the world about 0.7 s after resume, and ignore taps for 0.7 s after a crash so the tap meant to dodge does not restart the game. Pause on Back and on focus loss.
- Every pointer-down counts, not only the first finger, so two thumbs can alternate (Touch controls for mobile action and platformer games).
What changed when the same game moved to swipe steering. Lanes and taps became a continuous drag (relative, 1.5 times the finger's travel, eased), rows became walls with one gap, and the first tuning was too hard twice over. The fixes that held: - Start slower and ramp longer. The ramp constant went from 70 to 90 to 170 rows and the starting speed from 4.8 to 3.4 units per second; the top speed never changed. Players complain about the first thirty seconds, not the ceiling. - Bound the swerve, not the hop. Each new gap's center may move at most as far as the ship can travel in the time between walls, and always moves at least 40% of that, so every wall is a real decision and never an impossible one. - Early on, a share of the walls are single slabs with room on both sides, which teaches steering before threading. - Give the bot the player's limits (reaction delay, maximum sideways speed) and rerun the 150-seed test after every tuning change (Measuring game balance with scripted bots).
Hit boxes that match the paint
"It crashes when nothing touched" is usually a bug, not tuning. Look for a real mismatch first. - In this game the walls were drawn half a unit away from where they collided, with a drawn margin and a glow on top. No hit-box size could have felt fair. Paint obstacles from exactly the numbers the collision test uses, and add no glow, halo or margin to anything solid. - Make the player's collision shape the same polygon that is filled as its silhouette: one outline (half of it listed, then mirrored), rotated by the same banking angle for drawing and for collision, scaled a hair smaller (0.97) for forgiveness. Test the outline's edges against the obstacle's rectangle. - The rule for art: every solid part is painted inside the outline; only light (flames, glows, trails) may extend past it. - Unit tests can hold this: the outline is symmetric, a ship placed just clear of a wall does not collide and one just touching does, banked or not. - A zoomed-out field (more of the road visible ahead) did as much for "too easy to crash" as any hit-box change, because it lengthens reaction time.
A local high-score table with initials
A top ten with three-letter initials needs no server and little code, and the details decide whether it feels right:
- Keep the table as a small immutable value with pure functions (place(score), insert, rename, encode, decode) and unit-test it. A score of 0 never ranks; a tie goes below the older score.
- Write a ranking score the moment the run ends, signed with the last initials used, and let the player change them afterward. Nothing is lost if the app is killed on the game-over screen.
- Ask for initials automatically only the first time; after that show "Signed ABC · Change".
- A picker of three letter boxes with up and down arrows suits a game better than the system keyboard, which resizes the screen. Letters only, capitals, wrap from Z to A.
- The picker's backdrop must swallow taps from the instant of the crash, even before it is visible, or the tap meant to dodge restarts the game straight past it.
- Migrate an older single "best" value into line one of the table so an update does not erase it.
- Say where the run landed ("NEW BEST!", "No. 4 of 10") and highlight its line in the table.
Scoring and resource mechanics
- Score chain: kills within ~4 s build a multiplier (x2 to x8) shown large on the HUD; taking a hit resets it. Makes endless mode tense.
- Energy triangle (Elite style): one pool split between engines, weapons and shields with three keys; about 30 lines of sim and three HUD bars.
- Heat instead of ammo: sustained fire causes a short (~2 s) thermal lockout, rewarding trigger discipline.
Mission archetypes
Sweep (clear waves), Patrol (gate route with ambushes; doubles as tutorial), Hunt (chase one fleeing target on a timer), Siege (kill a big target while being harassed), Escort (protect a slow friendly), Run silent (weapons offline, evade), Boss.
Build order that keeps it playable
- Collision and destruction (the moment it becomes a game).
- First two enemies, score chain, hull and game over: endless mode is now tunable.
- Daily seed, local high score, replays, while the sim is still simple.
- Depth pass: more enemies, energy, heat.
- Campaign shell: briefing text, per-mission spawn tables.
- Bosses and special mission types.
Decide world topology early. A world that wraps around the player suits endless modes but has no persistent places; escorts, gates and boss arenas need a small fixed local area layered on the wrapping backdrop.
Four shapes for a puzzle mechanic
For a composable-transform puzzle core (Scope's "Spectral Tuning": lenses apply band shift, coherence and phase changes; land the result inside a target's tolerance window), four arcade shapes were compared:
| Shape | Lineage | Feel | Build cost | Risk |
|---|---|---|---|---|
| Timed score-attack runs | Tetris Effect, score chasers | Kinetic | Small-medium | Time pressure kills careful deduction |
| Falling-piece puzzler | Tetris, Puyo, Dr. Mario | Kinetic | Medium | Flattens into a color matcher |
| Defense / portal keeper | Tower defense, PvZ | Strategic | Largest | Biggest balance job, but built-in stakes |
| Daily deduction | Wordle, Mastermind | Cerebral | Smallest | Least "arcade" |
They hybridize well (a daily-deduction core plus a timed mode; a defense fiction can skin any of them). For daily deduction, feedback should say how a guess missed (band high, coherence low, phase off), with par, streaks and a shareable grid.
Aim assist for pointer shooting
From the shooting-gallery poll: let the crosshair follow the pointer with no easing (users found smoothing laggy), and add a magnetic pull toward the nearest target inside a radius (130 px radius, strength 0.4 felt right with 150 px targets). Give the crosshair distinct states for "over a target" and "over the bullseye", and a recoil animation on every shot. Moving targets with randomized speeds (65 to 150 px/s) read better than a uniform speed.
See also
- Ghost replays for racing and speedrun games
- Touch controls for mobile action and platformer games
- Fixed-timestep game loop for browser games
- Zero-allocation render and update loops
- Canvas 2D and SVG animation techniques for web scenes