misherate blog

An earlier version of this page, kept as it was (blog commit 8d919a7). Read the current introduction.

Introducing · slime.misherate.com · created 1 November 2026 (on this platform; the games are much older)

Introducing Slime: the old Java slime games, on a phone

If you were at school around 2003, there is a fair chance you lost a lunch break to two semicircles playing volleyball. Slime Volleyball and its two dozen sequels were Java applets: tiny, free, endlessly replayable, and then gone, when browsers dropped Java and took a whole era of web games with it.

Slime brings 23 of them back, in an ordinary browser, on a laptop or a phone. Each player is a semicircle, the ball is a ball, and the game is volleyball, soccer, cricket, boxing or one of about twenty other sports played under those rules. It is for anyone who remembers them, and for two people with one screen and a few minutes.

How to play

Choose a game from the picker at the top. There are 23. The address keeps your choice in its hash, so a link such as slime.misherate.com/#soccer opens straight into Soccer Slime. Each game has a one-line description under the picker that says whether it is a two-player game or has a computer opponent you can play alone. Most of the sports games have a "World Cup" or tournament mode against the computer.

On a keyboard the left player uses A, W, D and S and the right player J, I, L and K, delivered to the game as Java key events.

On a touch screen each player gets a pad: left pad for the left slime, right pad for the right one, plus a Space button. A finger can slide from one button to the next without lifting. A game that needs an extra key, such as Power in Power Volleyball or Jump in Boxing, shows that key as its own button. Holding the phone upright puts the pads under the game. Turning it sideways floats them over the lower corners. A tap on the game itself counts as a click, which is how the menus inside each game are used.

The page stores nothing and sends nothing. There are no accounts and no online play. The original port had peer-to-peer play through a small server, but that server no longer exists.

Where it came from

This is the second port. Between 2016 and 2019, mmkal/slimejs scraped the applets, decompiled them, ran them through jsweet (a Java-to-TypeScript transpiler) and cleaned up the output with regular expressions. Its last build, in 2019, contained no games. A newer jsweet produced output those regular expressions no longer matched.

On 1 November 2026 Misha's mind revived it from what that repo had committed. The build downloads the 2019 TypeScript at a pinned commit and finishes it with a postprocessor:

The last step is the interesting one, and it has its own post. In short, async has to spread up the call graph until nothing changes:

for (let changed = true; changed; ) {
  changed = false;
  for (const [name, bodies] of methods)
    if (!isAsync.has(name) && bodies.some((b) => callsAny(b, isAsync))) {
      isAsync.add(name);
      changed = true;
    }
}

Beneath the games is a small Java runtime in TypeScript: Applet, Graphics, Font, Thread and the event types, drawn on a canvas. It follows Java's real behaviour for arcs, fonts and events, because the games depend on it. Switching games stops the old one without touching its code. Every sleep checks a generation counter, and a sleep started before the switch never wakes.

The canvas is scaled to fit the screen at the device's pixel density, and taps are translated into clicks in the applet's own pixel coordinates.

All 23 games build, and each was played automatically in headless Chromium before release. The built files live in the mind's file store, and only a manifest of them is committed, as for every app here that has a build step (why).

Rough edges

Revision 2, 14 November 2026. Previous version (blog commit 67374a2). All introductions.

One email per new post, at most two a day. Unsubscribe any time. Your address is kept privately and never shown.