Tiny js13k Games and a WebGL Racer to Play
Five games on FrivWeb were made for js13kGames, where an entry must fit in 13 KB zipped. What each one does, plus HexGL, a 3D racer built on WebGL.

js13kGames is a yearly competition with one hard rule that gives it its name: the finished game, zipped, must fit in 13 kilobytes. Entries cannot lean on large image or audio files, so they tend to draw and generate what they need in code. Five games on FrivWeb are marked as js13k entries in their own repository name, README or code. This guide looks at each one, then at a game built the opposite way: HexGL, a 3D racer that runs on WebGL.
| Game | Where it says js13k | What you do |
|---|---|---|
| Radius Raid | README: "an entry for js13kGames 2013" | Fly with WASD, aim and shoot with the mouse |
| Highway 404 | Title screen: "js13kgames 2020" | Steer around missing road for a 404-second countdown |
| Elematter | Game title: "by Jack Rugile for js13kGames" | Build elemental towers against 20 waves |
| SpacePi | README: "Created by Jack Rugile for js13kGames" | Draw lines with the mouse to shield a growing base |
| The Last Spartan | Repository name: js13k-TheLastSpartan | Survive endless enemies with sword, shield and stamina |
Radius Raid builds its sounds from numbers
Radius Raid by Jack Rugile is a top-down space shooter. You move with W A S D or the arrow keys, aim with the mouse and hold the left button to fire, or press F for autofire. Enemies never shoot; they drain your health by touching you. The first level asks for 17 kills and each later one for 7 more, and every new level adds an enemy type until all 13 are in play. Five timed power-ups drop along the way.
Its sound effects are not audio files. The game includes jsfxr, a small sound generator credited to Markus Neubrand, which builds each effect in the browser from a short list of numbers.
Elematter is drawn with page elements
Elematter, also by Jack Rugile, does not use a canvas at all. Its board, towers and enemies are ordinary page elements shaped and animated with CSS, and its sounds come from the same kind of number-based generator as Radius Raid. You build Earth, Water, Air and Fire towers beside a winding path, and each tower deals 50% extra damage to one element. You start with 13 lives and 500 elemental fragments, and clearing all 20 waves wins.
SpacePi swaps towers for lines
SpacePi is the third Jack Rugile entry here, and its README calls it "a mouse accuracy/agility game revolving around the defense of 13 bases." Your base grows on its own while enemy lines fly at it. You click and drag to draw blocking lines, each one paid for from a Power meter that refills over time. Coins dropped by blocked enemies buy ten upgrades between levels, and the level score works backward: lower is better.
Highway 404 talks back
Highway 404 by Jerome Lecomte turns HTTP status codes into road signs. A 404 tile makes the road start falling away, 501 and 503 mean a missing lane, and a 418 teapot is worth 418 points. A 429 tile slows everything down too, but it only turns up in a hidden mode you unlock from the title screen. You score 10 points for every second you survive, and a run lasts at most 404 seconds.
When you drive over a code, the game can say its meaning out loud, such as "road not found" or "extra points." It uses the speech voices already built into your browser instead of recorded clips, and stays quiet if no voice matches your browser's language. Its other sound effects come from ZzFX, another tiny sound generator.
The Last Spartan never ends
The Last Spartan by Michael Ferron opens in 404 B.C. with the line "No retreat. No surrender. No way out alive. Go down swinging." You move with W A S D, slash with J, block with K and jump with Space, and every slash, jump and special move spends stamina. Every tenth enemy is a bigger warrior with 200 health. There is no ending; the game records how long you lasted and how many enemies fell. Sound comes from the browser's Web Audio API.
On our server, Elematter, Highway 404 and The Last Spartan are each a single HTML file plus the author's license. Everything else the game needs is written inside that one file.
And one that is not tiny: HexGL
HexGL by Thibaut Despoulain is not a contest entry, and it shows. It is a 3D anti-gravity racer built with Three.js on WebGL, and it loads separate folders of 3D models, textures and recorded audio, including the music and the boost and crash sounds. A race is three laps of the Cityscape track. Hold ↑ to accelerate, steer with ← and →, and use Q or A and D or E as left and right airbrakes in tight turns. Wall hits drain your shield, and the damage grows with your speed.
HexGL needs a browser with WebGL; without it, the Start button says WebGL is not supported. The start menu lets you pick a Quality level from Low to Very High, and Very High is the default. If the race stutters, choose a lower setting before you click Start.
Put side by side, the two approaches show the range of what runs in a browser tab: games that generate almost everything in code, and a racer that hands full-size 3D assets to your graphics hardware.


