

Swirl 1 Button Game
One button, one run: Swirl is a single-input arcade game where timing every tap is the whole challenge. Free in your browser.
Swirl is a one button game where the button draws a line rather than jumps. The build exposes the drawing model: a step size and step angle per frame, a loop test, a tether that keeps the player inside a radius, and a level counter that ends at nine.
The project has a sprite literally named hold, which is the whole control scheme: hold the button and the character draws. A can draw flag gates it, so the drawing is a state rather than a continuous effect, and the pen is the primary system rather than a decoration.
The pen advances by a step size and a step angle each frame. A step size of about fifteen and a step angle of three degrees are the starting values in the build, which is why a held button produces a curve rather than a straight line: the direction keeps rotating while the length stays fixed.
A loop test exists beside the drawing. A closed loop is a distinct state with its own flag, which is what makes the drawn line a mechanic rather than a trail.
A tether range of three hundred and a tether outline made of fifty vertices exist as their own values. The tether is drawn only when a draw tether flag is on, which is the difference between a radius you can see and one you only feel. A fifty vertex outline is smooth enough to read as a circle without costing a full circle calculation.
The floor is built the same way: a floor size of two hundred with seven vertices and a vertex position. A platform made of a few vertices is cheaper than a tile grid, and it lets the game tilt or reshape the ground without a new asset.
The level counter starts at zero and the win level is nine, which places ten levels in the game. Two timers guard the transitions: a level start timer of three hundred over a duration of ten, and a level clear timer of three hundred and fifty one over a duration of fifty. A start and a clear timer as separate values is how the game shows a title card and a result without a separate scene.
| Value | Role |
|---|---|
| level 0, winLevel 9 | The level range |
| levelStartTimer 300, duration 10 | The card before a level |
| levelClearTimer 351, duration 50 | The card after a level |
| frame 300, deathFrame 479 | Animation frames for the character |
| resetTimer 321, resetDuration 20 | The retry pause |
The character keeps a player speed of seven and a half, a player angle, a size of twenty and a colour value. Those four values are the entire body: the drawing is what gives it position, and the body is what gives the drawing something to follow.
Collectibles are placed with a minimum distance of thirty between them and counted against a maximum and a current value. Exploding one lasts ten frames. Because the placement is distance checked rather than grid aligned, a level can scatter pickups along a curve rather than on squares.
The same segment intersection test used for knot puzzles appears here for lines and collectibles: minimum and maximum edges on each axis, a max of mins and a min of maxes, and a vertical line buffer of zero and one tenth. A buffer value of a tenth means the test tolerates near misses rather than requiring exact contact, which in a drawn game is the difference between fair and frustrating.
The camera has its own position and a zoom of two, which is why the drawing can head off screen and still be followed. A camera that scales rather than only pans is what makes a curve readable at speed: the same line covers more screen when the zoom drops.
A deaths counter sits next to the level value, so the run is scored on both progress and mistakes. There is also a letter system: a pen text index, a letter string of the alphabet and an upper case flag. That is how the game draws words with the pen rather than with a font, which is the same technique used in the title screens.
A word bucket value sits beside the letters. It is the buffer that holds the text being drawn, which is why the game can print a level title, hold a prompt and then clear it without a separate text object. The death frame value of four hundred and seventy nine is the other end of that animation cycle.
There is no readable goal text. The interface is costume images — a title, a hold prompt and a you win screen — so the instructions are drawn rather than written, and this guide does not invent them.
Level layouts are also absent as data. The level counter advances, but each level is constructed by the project’s scripts from the camera, floor and collectible values rather than stored as a list of named stages. A guide to level seven specifically would have to come from playing it.
One held button. The project has a sprite named hold, and holding it sets the draw state.
It draws a curve. The pen advances by a step size and rotates by a step angle each frame, which is why the line curves.
Ten. The level counter starts at zero and the win level is nine.
A radius of three hundred that can be drawn as a fifty vertex outline, keeping the player within range.
With a minimum distance of thirty between them, so they can follow a curve rather than a grid.
Yes. Deaths are counted separately from the level value, so a run is scored on progress and mistakes.
It uses a pen text system with an alphabet string instead of a font, which is why the title cards look drawn.










