A SimEarth clone in OCaml using tsdl and tgls.
See roadmap.md for progress
git clone https://github.com/CharlesAverill/terrasim.git && cd terrasim
# Dependencies
sudo apt install libsdl2-dev libsdl2-image-dev libsdl2-ttf-dev libffi-dev libgmp-dev
git submodule update --init --recursive
opam install . --deps-only
dune buildTo run, simply
dune exec TerraSimThere are three views right now:
| Input | Effect |
|---|---|
| Mouse move | Pan view |
| Mouse click | Run command denoted by highlighted UI button |
c |
Switch to Atlas view |
h |
Hide the UI |
| Input | Effect |
|---|---|
| Mouse move | Pan view |
c |
Switch to Globe view |
| Input | Effect |
|---|---|
| Click and drag | Spin globe |
c |
Switch to Edit view |
