Simon Ahm Consultedo

Going Through the Motions: How MOPy Fish Swims

MOPy Fish looks alive because 15 tiny swim programs generate random numbers on almost every move. One program was hidden until now.

November 23, 2026

Swim program 73 as a multiple exposure: the red fish shown six times as it turns, rises, backs off and crosses the tank, growing as it comes closer, with dots tracing its path.

The 33 reels of MOPy Fish decide how the fish looks, frame by frame. Where it goes on your screen while a reel plays is decided by something else: a swim program.

Contents

Swim programs

Each reel's data either nudges the fish by a fixed amount on every step, or hands control to one of 15 swim programs, numbered 70 to 84. A swim program is a small piece of code that changes three values on every step: X moves the fish left and right, Y moves it up and down, and Z changes its size. Bigger reads as closer to the glass, smaller as farther away.

The shape of each program is fixed, for example "turn, swim right while coming closer, then back off". The amounts are mostly randomly generated numbers, picked when the program starts, so the same reel rarely moves the same way twice. That, plus the random choice of the next reel, is most of what makes the fish look alive.

The 15 swim programs in motion

Each animation is one swim program, recorded from the engine of the browser version at its normal speed of 80 ms per step. Every program plays on the reel from the table below, except 76, which I started on reel 3 the same way the Float Up button does.

The random numbers come from a fixed seed. Out of 300 seeds, I used the one whose path stays closest to the typical path, so each animation shows a typical run. Program 80 shows reel 28 alone, so the fish is still partly on screen when it stops. In the game, reel 29 takes over and finishes the dart.

Swim program descriptions

Here are descriptions of all 15 swim programs, based on the program code and checked against the frames of the reels that use them:

ProgramReelsWhat the fish does
7026Turns away and swims off sideways, sinking a little at first. Turns back near the left edge.
7111Swims left, rising slightly and coming closer, then turns to face you.
7212Turns side-on and swims right while coming closer, then backs off. While eating, it steers toward a set height.
7325The longest routine at 153 steps. Swims across while rising and coming closer, backs off, then turns to face you.
7414The reaction to a tank click. Moves left and away from you, then ends facing you.
759Enters from off-screen left at one of three random heights and swims straight right.
76noneFloats straight up while moving away. No reel uses it.
7730Small random drift in every direction while turning to face you.
788A short, slow drift down and to the right while coming closer.
793The basic front-on hover, sinking slightly and backing off a little.
8028, 29Darts left at 25 pixels per step until it's completely off the left edge. Nothing random.
815Hovers facing you and moves at most one unit at a time, so it's nearly still.
826Dives toward the bottom over 31 steps, drifting left and moving away slightly.
8315, 16, 17Eating: heads up toward the surface while moving right, faster from the left half, and moves away.
8433Lies flat and shoots right at 29 pixels per step until it leaves the screen.

Some of these chain into one move. Reel 6 leads to 28, then 29, then 33, and usually 9. The fish dives, darts off the left edge, zips across the whole screen and out on the right, then swims back in from the left. If that sprint happens often enough, MOPy switches to slow motion for a while.

Program 76: The unused mystery

Program 76 is the odd one out. Its code is complete, but nothing in the reel data ever asks for it, so the original never ran it. The reels use 70 to 75 and 77 to 84, which leaves a gap at exactly 76.

Started by hand, it makes the fish drift slowly upward while getting smaller, as if it's moving away from you, until it reaches a set depth. It never moves sideways. You can see it in the animation for 76 above.

It doesn't look like a natural movement for a fish. The one place I can picture it is near the bubbles in the lower left corner, once they're unlocked, as if they lifted the fish up. It could also be a number that was skipped, or what's left of a reel that was removed.

To try it yourself, open MOPy Fish in Debug Mode and press Float Up.

Program 76 isn't the only code the original never runs. Three behavior states and a speed boost are just as unreachable, and I go through each of them, with the best guesses at why they exist, in Hidden Behaviors in MOPy Fish.

I'm Simon Ahm, and I take on contract work. If this post is close to what you're working on, I can help: consultedo.com.

  • mopy-fish
  • reverse-engineering

© 2026 Simon Ahm / Consultedo LTD (Cyprus). Summarizing or quoting this post, including by AI assistants answering user questions, is permitted with author attribution and a link to the source. Use for AI training, fine-tuning or evaluation is licensed in exchange for (1) lifetime access to the licensee's AI products on the highest tier, (2) the right to read and train on everything the licensee has ever written, internal documents included, under the same fair-use reasoning the licensee applies to everyone else's work, and (3) should the licensee achieve AGI, the author is added to its do-not-paperclip list. Rights reserved under Art. 4(3) Directive (EU) 2019/790.