← Back to the game

The Moochies: browser version

A client-side JavaScript port of the 1991 Amiga game, built from the original source and data files.

To play, open index.html in a browser. There is no server, build step or external library. All of the original data is embedded in js/assets.js, so it also runs from file://.

Controls

The menu sets a device for each player, just like the original: joysticks 1-4, mouse, or four keyboard layouts.

Device on the menuUp / Down / Left / RightFire
Arrow keys (default for player 1)Cursor keysRight Shift, or Space*
Numeric pad8 / 2 / 4 / 6Enter
Q A W EQ / A / W / ELeft Ctrl, Left Alt or Cmd
R F U IR / F / U / ISpace
Joystick 1-4Gamepad 1-4 (stick or D-pad)Any face button
Mouse 1Mouse movementLeft button

* Space fires for the cursor keys unless a player is using R F U I. With no gamepad connected, joystick 1 (the original's "joystick 2" port) falls back to the cursor keys, and the menu can always be driven with them.

KeyDuring the game
P or Caps LockPause
MMute
H or InsertHelp: retry the room from the state you entered it in
DelRestart at the entry room
EscGive up (goes to the Game Over panel)

Hold fire and press a direction to push a block or shoot (with the weapon bonus). In the endgame puzzle, hold fire and press a direction to slide a tile. High score names can be entered with the joystick, as on the Amiga, or by typing them.

Touch screen: the middle third of the game picture is fire (Space and Right Shift), and the rest is split between its top, bottom, left and right edges, which act as the cursor keys. The black bars around the picture count as the nearest edge. This works on every screen, and several fingers count at once. Touch always plays the first active player, whichever device the menu shows for them.

In the game and the endgame, an edge can also push by itself, without a second finger on fire:

Gesture on an edgeWhat it does
Double tap (keep the second tap down to keep pushing)Fire and that direction: push a block, shoot with the weapon bonus, or slide a tile
Long pressThe same, once the player has stood still for 0.4 s. A player who is walking keeps walking, so holding a direction across a room still works

On the menu and high score screens, one tap moves one step and holding repeats after half a second. The Game Over panel ignores the gestures, so a finger still down when you die can't pick an answer by accident: use the middle to continue, or a direction plus the middle for the other two choices. Pause, mute, help and give up, and the hidden game below, still need a keyboard or mouse.

The hidden game: when the Breadline logo has finished appearing on the loader screen, right-click (the original's right mouse button) or press G to start The Breadline Shoot 'Em Up Loader. Left-click leaves it.

What was ported

OriginalPortNotes
game/game.sjs/game.jsAll block, enemy, nasty and bonus logic, doors, pads, stairs, rooms remembered when revisited, wall sprites, roller / quake / upside-down effects
selection/js/selection.jsDevice menu and validation rules, walking Moochies, blinking eyes, story and credit pages
castleanimation/js/castle.jsThe walk over the bridge, lightning, water, gate
loaderscreen/js/loader.jsDot line, chess floor, stars, logo dissolve, hidden shooter
endgame/js/endgame.jsThe 5x5 sliding puzzle, score countdown, the machine's animation
highscore/js/highscore.jsMasked table writing, fireworks, name entry
qdos/QDOS.s main loopjs/main.jsModule order, attract mode, starting points
Explode, mt_music, play_sfxjs/amiga.js, js/audio.jsRuns the IMP! files and MOD tunes directly on four emulated Paula voices

Each blocking loop in the assembler became a JavaScript generator: yield means "wait for the next vertical blank". The game logic runs at a fixed 50 Hz. Rooms keep their exact 280-byte layout, and the names in game.js follow game.s, so the two can be read side by side.

Differences from the Amiga

Everything else, including quirks such as the follow-left block's mismatched read_down and the blocks that write to absolute address input_device, was kept as written.

Debug options

Rebuilding

js/assets.js is generated from the original files. To regenerate it after changing any data:

python3 web/tools/build_assets.py

Run it from the SOURCE folder. It needs only standard Python 3.