Skip to content

CharlesAverill/terrasim

Repository files navigation

TerraSim

logo

A SimEarth clone in OCaml using tsdl and tgls.

See roadmap.md for progress

Building

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 build

To run, simply

dune exec TerraSim

Controls

There are three views right now:

Edit view (Cartesian)

Input Effect
Mouse move Pan view
Mouse click Run command denoted by highlighted UI button
c Switch to Atlas view
h Hide the UI

Atlas view (Cartesian)

Input Effect
Mouse move Pan view
c Switch to Globe view

Globe view (Orthographic)

Input Effect
Click and drag Spin globe
c Switch to Edit view