Standalone React + Three.js pirate combat app rebuilt from the original Starbug pirate sim demo.
This project takes the original prototype and turns it into a focused standalone app with:
- a dedicated React app shell
- a playable Three.js pirate simulation
- world, roadmap, and feature pages built from the original design docs
- lazy-loaded game code so non-game pages stay lightweight
- Procedural open-sea world streaming around the player
- Mouse steering, wind-based sailing, and broadside combat
- Harbour docking, upgrades, repairs, and gold economy
- Enemy ship types with different combat behaviors
- Dedicated product pages for overview, world rules, and roadmap
- React
- TypeScript
- Vite
- Three.js
- React Router
npm install
npm run devOpen the local Vite URL, then visit /play to launch the game.
npm run dev
npm run build
npm run preview
npm run lintsrc/
components/ App shell and shared layout
data/ Extracted feature, world, and roadmap content
game/ Pirate sim React wrapper and game styling
pages/ Route-level pages
/overview page/playplayable pirate sim/worldworld rules, enemy roster, and upgrades/roadmapdelivery status and performance targets
Production build passes with:
npm run build- The game logic is currently hosted in a React wrapper around the reused prototype code.
- The
/playroute is lazy-loaded separately from the content routes.