Command-line themed browser game where you drag an umbrella to protect a traveler from rain, snow, and hail.
Play the hosted version at https://www.ltv0.me/blaster-hack-commandline-game/
- Terminal-style boot prompt and HUD
- Mouse and touch umbrella controls
- Rain, snow, and hail hazards
- Progressive difficulty ramp
- Survival scoring
- Game over and restart flow
- Text-only visual rendering on canvas (ASCII/glyph blocks only; no sprite/image assets)
- Main implementation reference: https://github.com/rinesh/pretext-breaker
- Source code reference: https://github.com/rinesh/pretext-breaker/tree/main/src
- Pretext npm package reference: https://www.npmjs.com/package/@chenglou/pretext
- Architecture alignment target:
src/main.ts,src/game.ts, andsrc/pretext-renderer.ts. - umbrella sprite: https://www.asciiart.eu/art/063c0304bc2d8903
- Install Node.js LTS: https://nodejs.org/
- (Optional) Install Git for Windows: https://git-scm.com/download/win
- Open PowerShell in the project directory:
blaster-hack-commandline-game- Install dependencies:
npm install- Start dev server:
npm run dev- Build production output:
npm run build- Preview production build:
npm run preview- Enter or Space: Start from prompt
- Mouse/touch drag: Move umbrella
- R: Restart after game over
npm run dev- Start Vite dev servernpm run build- Build static production outputnpm run preview- Preview the built outputnpm run type-check- Run TypeScript checks