Skip to content

birbh/last-breath

Folders and files

NameName
Last commit message
Last commit date

Latest commit

4274841 · · Apr 1, 2026

History

6 Commits
Feb 28, 2026
Apr 1, 2026
Apr 1, 2026
Apr 1, 2026
Apr 1, 2026

Repository files navigation

LAST BREATH

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..

Story

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.

Gameplay

  • 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 O2 to 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.

Controls

  • Move: A / D or ← / →
  • Jump: W or or Space
  • 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, and Restart buttons

Features

  • 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)

Run Locally

No build step is required.

  1. Open the project folder.
  2. You can open index.html directly.

Hardest Part

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published