A minimalist time-manipulation puzzle game where you can rewind yourself, but the world cannot.
The world remembers. You don't.
ONE SECOND AGO is a small atmospheric puzzle game built around one rule: the player can travel exactly one second into their own past, while switches, doors, boxes, hazards, enemies, and the rest of the chamber continue existing in the present. Every solution is an experiment in separating where I was from what the world remembers.
The current build includes a real one-second player-only rewind ring buffer, twelve handcrafted deterministic puzzle chambers, switch and pressure-plate state, doors, pushable boxes, moving hazards, a roaming hunter, local progress saving, fast retry, settings persistence, a responsive HUD, reduced-effects mode, procedural particles, a generated art direction, and a cinematic Temporal Brutalism interface.
| Key | Action |
|---|---|
| W A S D / Arrow Keys | Move |
| R | Rewind yourself exactly one second |
| Space / Enter | Interact with a nearby switch |
| Esc | Pause |
The game is designed for keyboard-first desktop and laptop play. It also exposes visible control hints in the title screen and HUD, with focus-visible keyboard navigation for menus.
The game uses React 19, TypeScript, Vite, Tailwind CSS, Babylon.js for the full-screen canvas simulation, and browser-local storage for progress and settings. Gameplay is kept in plain TypeScript modules under client/src/game/; React remains the picture frame around the simulation.
| Path | Responsibility |
|---|---|
client/src/components/GameCanvas.tsx |
Babylon lifecycle boundary plus menus, HUD, settings, pause, death, completion, and ending screens |
client/src/game/world.ts |
Scene construction, level runtime, world-owned entities, collision, hazards, enemy, camera, particles, and event bridge |
client/src/game/player.ts |
Acceleration/deceleration movement and exact one-second personal history buffer |
client/src/game/levels.ts |
Twelve data-driven handcrafted level definitions |
client/src/game/input.ts |
Semantic keyboard action normalization |
client/src/game/storage.ts |
Versioned local progress and settings persistence |
ideas.md |
Selected design direction and visual/interaction rules |
PLAN.md / STRUCTURE.md / ASSETS.md |
Production pipeline context and verification criteria |
Install dependencies and start the Vite development server:
pnpm install
pnpm devThe development server is configured to listen on all interfaces. Open the printed local URL in a modern Chromium, Firefox, or Safari browser.
Run the type check and production build with:
pnpm check
pnpm buildAppend ?demo to the local URL to start in Chamber 01 with an automated movement path. The demo mode is intended for visual verification and screenshots; regular gameplay remains keyboard-controlled.
Future expansions could add more expressive sound design, optional gamepad controls, a ghost-run comparison mode, community-shared challenge codes, a level editor, and a post-campaign archive of annotated solutions. The core rule should remain unchanged: only the player rewinds.
MIT. See LICENSE.