LAST BREATH is a 2D survival platformer built with plain HTML, CSS, and JavaScript. You play as a stranded astronaut on a toxic planet and must descend underground before your oxygen runs out..
Your spacecraft crashes on a hostile world with a poisonous atmosphere. The only chance to survive is to reach an underground civilization. Every jump, pickup, and mistake costs precious oxygen.n.
- Move through a vertical level filled with platforms, traps, and moving hazards.
- Manage a draining oxygen supply while navigating deeper underground.
- Collect blue oxygen capsules marked with
O2to refill oxygen. - Activate checkpoints to reduce punishment after death.
- Pick up collectibles and improve your final score.
- Reach the goal gate to complete the run and view end stats.
- Move:
A / Dor← / → - Jump:
Wor↑orSpace - Pause / Resume:
P - Restart Run:
R - Toggle Challenge Mode:
M(or HUD mode button) - Toggle Daily Variant:
Y(or HUD daily button) - Mobile: on-screen
Left,Right,Jump,Pause, andRestartbuttons
- Responsive full-screen canvas gameplay
- Intro sequence with atmosphere and story slides
- Oxygen HUD, score, timer, and status messages
- Live HUD highest-score display synced with saved best run
- Live depth tracker with checkpoint and goal position markers
- Challenge mode (higher oxygen drain, higher collectible score value)
- Daily variant mode (date-seeded pickup layout + moving trap speed mix)
- Death run summary toast (cause, elapsed time, and deepest depth reached)
- Checkpoints, boosts, collectibles, and hazards
- End-of-run results panel (time, score, oxygen left, collectibles, checkpoints)
- Persistent best-run tracking (best score + best time saved in browser)
- Lightweight synth sound effects (Web Audio API)
No build step is required.
- Open the project folder.
- You can open index.html directly.
The hardest part was balancing movement feel with survival pressure. Platforming only feels good when jumps and collisions are predictable, but the oxygen timer adds constant urgency. Getting those two systems to work together (without making the game unfair) took the most time.e.