- TypeScript 67.2%
- CSS 32.5%
- HTML 0.3%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
Add the complete React and TypeScript game with solar exploration, surface
mining, modular lunar-base construction, research, achievements, local
persistence, and a responsive mission-control interface.
🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
|
||
| src | ||
| .gitignore | ||
| index.html | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| tsconfig.app.json | ||
| tsconfig.json | ||
| tsconfig.node.json | ||
| vite.config.ts | ||
Lunar Foundry
A single-page space strategy game. Survey the solar system, extract the resources that matter, and grow a self-sustaining base at the lunar south pole.
Run it
npm install
npm run dev
Open the local URL printed by Vite. To produce a static build:
npm run build
npm run preview
The build is served from dist/ and can be hosted on any static file server.
The loop
- Choose a destination on the interactive solar map. Fuel, transit time, hazards and risk are displayed before launch.
- Scan a surface site to reveal its deposits, reserve size and hazard profile.
- Deploy a rover, scout drone or EVA crew, then mine sample caches into the cargo hold.
- Return to the Moon to bank the materials, then build and upgrade the foundry in the fabrication bay.
- Research technologies, complete campaign directives, unlock the outer system and collect achievements.
The campaign begins with Blue Gold: survey the lunar south pole, return water ice and regolith, build a Water Extraction Plant, and upgrade the Habitat Dome. Every later mission opens new destinations and construction options.
Systems
- Resources — water ice, regolith, helium-3, iron, titanium, rare earths, silicon, aluminum, hydrogen and oxygen, each with a distinct role.
- Operations — energy, fuel, cargo capacity, transit time, crew morale, hull integrity and site hazards all matter. Failure is never terminal: emergency reserves, rescue returns and base repairs keep the campaign moving.
- Base modules — 13 modules across operations, power, life support, industry and science, each with three upgrade levels and prerequisite chains.
- Research — 11 technologies across four branches, generated by labs and observatories.
- Progression — 8 campaign directives, 8 destinations, 16 achievements.
- Persistence — progress saves automatically to
localStorage. Reset the campaign from the settings panel.
Stack
React 19, TypeScript, Vite, hand-authored CSS and SVG, Lucide icons. No backend, no external assets, no runtime network dependency.
Accessibility: keyboard-reachable controls, ARIA meters and live regions, descriptive labels, visible focus states, and reduced-motion support via prefers-reduced-motion.