Skip to content
openmars-appPublic

About

Open-source online implementation of Terraforming mars

Resources

Stars

2 stars

Watchers

0 watching

Forks

Repository files navigation

Open Mars

Terraforming Mars in your browser.

Play with friends or AI opponents on a 3D Mars board. No account needed.

License Stars Issues Coverage

Original music by Lucas. Thanks for the soundtrack!

Open Mars is a fan-made, open-source project, unaffiliated with FryxGames, Asmodee Digital, or Steam. If you enjoy playing, please support the creators and buy the physical board game.

A multiplayer game on the 3D Mars board, with cities, forests and oceans

Play on Mars

Build cities, plant forests and fill oceans as you compete to terraform the planet. Rotate Mars and zoom in to place tiles directly on its surface, or take a look around the solar system between turns. Cities rise and forests grow as you build them.

You can play on desktop or on a phone in landscape.

Cards and expansions

Choose from hundreds of cards, with corporations, milestones and awards to shape your strategy. Open Mars includes the base game, Corporate Era, Prelude, Venus Next, Colonies and Turmoil.

Project cards with simple effects, triggered abilities, resource storage and alternative actions

Multiplayer and bots

Create a lobby, pick a map and your game options, then share the invite link. Friends and AI opponents can play in the same game. If you lose your connection, you can rejoin and carry on.

Game lobby with player invitations, map selection and expansion settings

Run locally

Install Go, Bun, Rust via rustup, just and Git LFS.

git clone https://github.com/openmars-app/openmars.git
cd openmars
git lfs pull
just deps
just dev

Open http://localhost:3000 to create a game. The backend runs on port 3001.

The repository pins the Rust toolchain. just deps installs the engine's WebAssembly target and binding tools, along with the other project dependencies. Git LFS downloads the source models, images and audio needed to build.

How it's built

Part Technology
Interface React, TypeScript, Tailwind CSS
3D world Rust, Bevy, WebAssembly, WebGPU / WebGL2
Server Go, Gorilla WebSocket, Gorilla Mux
Development tools Tygo for generated TypeScript, Air for backend reloads

The Go backend handles game rules and state. React handles the interface and networking; Bevy renders the 3D world. The renderer uses WebGPU when available and falls back to WebGL2.

Contributing

Game logic lives in backend/, the interface in frontend/, and the renderer in engine/. Bug reports and pull requests are welcome.

just test               # Backend and gateway tests
just lint               # Lint all modules
just format             # Format source files
just prepare-for-commit # Format, regenerate types and run the CI checks

Run just to see all available commands.

License

MIT.

About

Open-source online implementation of Terraforming mars

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages