Loopin › Making stories › Drawing and playing in code
Making Story · 2026.12.04Drawing without image files,
playing without audio files
Several of Loopin's web games have almost no image or music files. Code draws the screen on the spot, and the browser synthesizes and plays the background music on the spot. Here is why we made them this way, and how it actually works, game by game.
Why make games without files?
- They open fast. There are no large images or audio files to download, so you can start the moment you open the address. For games you play without installing, this matters most.
- They are easy to change. To change a color or a size, you change a number instead of redrawing a picture. When an animal gets bigger, its legs grow longer at the same ratio.
- They change with the situation. Music that brightens the higher you climb, or sound that softens at night: changes that are hard to do with pre-recorded music.
- The rights are clear. We only use art and sound we made, so there is less worry about material of unknown origin slipping in.
Not every game works this way, of course. Taxi Loop and Zombie Train Rescue, which use a lot of 3D models, use free public 3D models (CC0) and credit them inside the game. The fields and animals in Silly Farm Story are cut from a pixel-art sprite pack. Below are the stories of the games where drawing and playing in code is a big part.
Dawn Giant: drawn on canvas, played in layered chords

The moss giant, the ledges, the spirit and the sky are all drawn on a canvas in code. There is not a single image file. Even the film-like grain over the screen comes from four small noise images made once at startup and reused, so it is not recalculated for every frame.
The background music is a slow piece at 66 BPM. Four chords change bar by bar (Dmaj9 → Bm7 → Gmaj7 → Asus2), laying down pads and bass, and over them a D pentatonic melody rings out by chance rather than from a fixed score. It passes through an echo (delay) for a resonance like dawn air. The fun part is that the music changes with height. The higher you climb, the more a filter opens, making the sound brighter and the melody more frequent. When the game ends, it turns small and dark.
Village on Its Back: drawing animals with numbers
All six animals (turtle, sheep, bear, rhino, elephant and whale) are drawn on canvas. Each animal's shape is defined at a base size, and as the back gets wider, the whole animal grows at the same ratio. The view pulls back automatically to show the head and tail, so the bigger the animal, the smaller the village looks.
The walking is made in code too. Each leg is drawn on the spot from a point on the body to a foot on the ground, so even when the back tilts, the feet stay planted as it walks. The whale has no legs, floats half under the sea and spouts water now and then. Grass, clouds and hills drift to the left, so the animal looks like it is walking right.
The music is 84 BPM, with a music-box F pentatonic melody over four chords (Fmaj7 → Am7 → Dm7 → B♭maj7). The building sound, the stomping steps and the sound of a building falling are all synthesized too.
Deep Sea Lantern: the sound of underwater

Deep Sea Lantern is drawn with the 3D graphics library three.js. The seabed's height comes from a noise function and rises toward the edges, and the sand ripples and grains are drawn with graphics calculations (shaders). A new sea can be made for every dive because the terrain is built from formulas, not pictures.
All sound is made without files. Low-filtered noise gives the underwater hum, a very low rumble gives depth, and a distant whale call is heard now and then. The background music lays down A-minor chords at 52 BPM (Am9 → F△9 → Dm9 → Esus4), two bars per chord, with an occasional bell. When the monster chases you, you hear a heartbeat that speeds up as it gets closer.
Silly Farm Story: 8-bit songs and pig sounds
The farm's background music is an 8-bit tune played live without any file. Melody, oom-pah bass and hi-hat loop over 16 bars (about 34 seconds), and after 7 p.m. the hi-hat drops out and the sound turns softer.
The animal sounds are synthesized too. The pig's "oink" is a sound filtered to sound nasal, with a grunting wobble added twice, and the smaller the pig, the higher the oink. The chickens, cow, sheep and goat are made the same way.
The four heroes are drawn as 16×22 character-grid pictures. Starting from one person's drawing, we swap the hair and clothing colors (palette) and add accessories like a ribbon, a star pin or a flower pin to make four different people.
Kitty Pop-up Book: a felt piano
Each neighborhood in Kitty Pop-up Book has a 16-bar piano piece. The browser synthesizes a soft sound like a felt-dampened piano. At first it built the sound while drawing the game and was so slow it made only two notes in 2.5 seconds. So now, when the page opens, a background task (Web Worker) builds the notes in advance, and the first bar plays the moment you start. The full story is in Making Kitty Pop-up Book.
Playing a public-domain song ourselves
In Taxi Loop's gift district, the Christmas winter night, the carol "Jingle Bells" plays. It was published in 1857 and is out of copyright, but a recording can carry its own rights. So instead of bringing in a recording, we made the game play it live with a bell melody, an oom-pah bass and sleigh bells.
One rule we keep: sound never starts on its own
Browsers do not allow sound until the user has tapped at least once. So the music starts when the user taps something like the start button, and it can be turned off anytime with an on-screen button or the keyboard (usually M). Silly Farm Story, Dawn Giant, Deep Sea Lantern and Kitty Pop-up Book remember when you turn it off, and stop the sound when you switch to another tab to save battery.
In short
Making things without files takes more work at first. But once it is done, the game opens fast, size, color and mood can be changed with a few numbers, and the art and music change together with what happens in the game. For web games you open briefly and play for a moment, this approach worked well.