A member-made project
  • TypeScript 67.2%
  • CSS 32.5%
  • HTML 0.3%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
P7MJ 122cba8a89 Build Lunar Foundry solar-system base-building game
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>
2026-11-02 15:45:02 -05:00
src Build Lunar Foundry solar-system base-building game 2026-11-02 15:45:02 -05:00
.gitignore Build Lunar Foundry solar-system base-building game 2026-11-02 15:45:02 -05:00
index.html Build Lunar Foundry solar-system base-building game 2026-11-02 15:45:02 -05:00
package-lock.json Build Lunar Foundry solar-system base-building game 2026-11-02 15:45:02 -05:00
package.json Build Lunar Foundry solar-system base-building game 2026-11-02 15:45:02 -05:00
README.md Build Lunar Foundry solar-system base-building game 2026-11-02 15:45:02 -05:00
tsconfig.app.json Build Lunar Foundry solar-system base-building game 2026-11-02 15:45:02 -05:00
tsconfig.json Build Lunar Foundry solar-system base-building game 2026-11-02 15:45:02 -05:00
tsconfig.node.json Build Lunar Foundry solar-system base-building game 2026-11-02 15:45:02 -05:00
vite.config.ts Build Lunar Foundry solar-system base-building game 2026-11-02 15:45:02 -05:00

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

  1. Choose a destination on the interactive solar map. Fuel, transit time, hazards and risk are displayed before launch.
  2. Scan a surface site to reveal its deposits, reserve size and hazard profile.
  3. Deploy a rover, scout drone or EVA crew, then mine sample caches into the cargo hold.
  4. Return to the Moon to bank the materials, then build and upgrade the foundry in the fabrication bay.
  5. 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.