emnh/rts-reasonml

Experimental ReasonML implementation of rts game

OCaml

48

207 commits

updated Feb 27, 2023

See the code

README

Prerequisites

sudo apt install ocaml
sudo npm install -g https://github.com/reasonml/reason-cli/archive/3.0.4-bin-linux.tar.gz
sudo npm install -g concurrently
sudo npm install -g budo
npm install bs-platform
npm install
git submodule update --init
npm start

Go to http://localhost:8080/index .

Resources

TODO

  • Perf fixes: uniform array concat, currying, caml_get_public_method
  • Multi-view from different angles
  • Fix reuse of WebGL context on reload
  • Tower defense game
  • Camera movement with WASD/arrows, mouse trackball rotation and mouse scrolling, FPS mode
  • Simple 3D boats or cars carrying 2D units
  • Tower placement with mouse
  • Unit selection
  • Finding k nearest neighbours
  • Attack animation
  • Damage graphs and heat maps
  • Health bars
  • Unit deaths or explosions
  • Fish jumping in sea, underwater view
  • Volcanoes, floods, smoke and forest fires

Contributors

emnh

207 commits

emnh/rts-reasonml

Experimental ReasonML implementation of rts game

OCaml

48

207 commits

updated Feb 27, 2023

See the code

README

Prerequisites

sudo apt install ocaml
sudo npm install -g https://github.com/reasonml/reason-cli/archive/3.0.4-bin-linux.tar.gz
sudo npm install -g concurrently
sudo npm install -g budo
npm install bs-platform
npm install
git submodule update --init
npm start

Go to http://localhost:8080/index .

Resources

TODO

  • Perf fixes: uniform array concat, currying, caml_get_public_method
  • Multi-view from different angles
  • Fix reuse of WebGL context on reload
  • Tower defense game
  • Camera movement with WASD/arrows, mouse trackball rotation and mouse scrolling, FPS mode
  • Simple 3D boats or cars carrying 2D units
  • Tower placement with mouse
  • Unit selection
  • Finding k nearest neighbours
  • Attack animation
  • Damage graphs and heat maps
  • Health bars
  • Unit deaths or explosions
  • Fish jumping in sea, underwater view
  • Volcanoes, floods, smoke and forest fires

Contributors

emnh

207 commits

Languages

OCaml

87.5%

C++

5.1%

JavaScript

3.7%

Python

3.0%