SvitsGames

Trylight

A one-button runner through eight dark caves. Every fail leaves a lantern lit on the spot, so each try shows you a little more of the way.

runner / one-button / HTML5

Screenshot from Trylight

Trylight is a one-button runner through eight dark caves that runs in any browser. It was made in 72 hours for Foundplay Jam #1 on the theme “One more try”. You can barely see what is ahead, but every time you fail, a lantern stays lit where it happened. Each try shows a little more of the cave, until one makes it through.

What you do

A small candle-sprite runs on its own; you choose only when to jump and how high. Click, tap or Space to jump, and press longer to jump higher. P or Esc pauses and M mutes.

There is nothing to get through before the first run. It counts itself in — “Ready? 3.. 2.. 1.. Go!” — and the first press is a jump. A retry is one press. In the first cave, a runner heading onto the first spike with no press stops dead in front of it and waits, at the last point from which any press, a tap to a full hold, still clears it.

Springs, rings, low ceilings, falling spikes and a cave in pitch black stand between the runner and the surface. Clear a cave and the camera pulls back over everything you lit: the lanterns chime in the order you left them, and your winning path is drawn through them.

The Deep: a daily endless cave

Reach the surface and The Deep opens: one endless cave a day, seeded from the UTC date, so it is the same for everyone that day. Every try starts from the beginning and the lanterns stay lit, so the edge of your light is your record, measured in metres. The bottom is 4 km down.

The Deep is chained from 34 short pieces lifted from the caves, each starting and ending on level floor. It gets harder over the first 600 m through harder pieces and less floor between them, never by speeding the runner up.

How it’s built

Phaser 4.1.0, TypeScript and Vite. The 1.0.1 jam build’s code is 408 kB gzipped, Phaser included. There are no image or audio files: the art is drawn in code and the sound is synthesised in code, and the only other file the game loads is a 26 kB subset of the Cinzel font.

The caves are checked by search rather than by hand. A breadth-first search over the game’s own simulation proves every cave can be cleared and that every press it needs has a timing window of at least 0.2 s, and the same check covers every piece of The Deep.

The canvas fills the window: the cave is 720 game pixels tall in any window 4:3 or wider, and a wider window sees further along it. On a touch screen held upright, the game turns a quarter turn and fills the screen.

The devlog covers two traps a game like this has to clear: why a Phaser loading screen can’t cover its own bundle, which matters when the jam’s one rule is playing within five seconds, and why Phaser drops a release off the canvas, which matters when how long you press is how high you jump.