Home

Awesome

<h1 align="center"> <a href="https://tversteeg.nl/ld46/">Fermi Paradox</a><br/> <a href="https://github.com/tversteeg/ld46/releases"> <img src="https://cdn.rawgit.com/simple-icons/simple-icons/develop/icons/linux.svg" width="18" height="18" /> <img src="https://cdn.rawgit.com/simple-icons/simple-icons/develop/icons/apple.svg" width="18" height="18" /> <img src="https://cdn.rawgit.com/simple-icons/simple-icons/develop/icons/windows.svg" width="18" height="18" /> </a> <a href="https://tversteeg.nl/ld46/"> <img src="https://cdn.rawgit.com/simple-icons/simple-icons/develop/icons/mozillafirefox.svg" width="18" height="18" /> <img src="https://cdn.rawgit.com/simple-icons/simple-icons/develop/icons/googlechrome.svg" width="18" height="18" /> <img src="https://cdn.rawgit.com/simple-icons/simple-icons/develop/icons/safari.svg" width="18" height="18" /> </a> </h1> <p align="center"> How come we don’t see any life from other planets? What does an intergalactic society need to do to survive? </p> <p align="center"> <a href="https://github.com/tversteeg/ld46/actions"><img src="https://github.com/tversteeg/ld46/workflows/CI/badge.svg" alt="CI"/></a> <br/> </p>

Play

Play it directly in your browser here!

Or download the executable file from the Releases tab and execute it.

You might have to change the permissions on Linux with chmod u+x ld46-*

How to play

Use the mouse to project your home planet from the alien invasion.

Build

You will need an up-to-date Rust setup.

Linux Dependencies

To build it on linux you will need the X11, OpenGL & Alsa development libraries:

sudo apt install libasound2-dev libx11-dev libxi-dev libgl1-mesa-dev

Run

Native

You just need to run the following to compile & run the game after you've installed the dependencies:

cargo run --release

WASM

Add the wasm32 target to Rust, build it with that target & copy it to the root:

rustup target add wasm32-unknown-unknown
cargo build --release --target wasm32-unknown-unknown
cp target/wasm32-unknown-unknown/release/ld46.wasm .

Now we have to host the website:

cargo install basic-http-server
basic-http-server .