2015 learning project on #{functional reactive game} programming. Input from mouse, keyboard and device accelerometer is handled with event streams provided by reagi/coreasync. Game is drawn on 2D canvas with monet library. HUD is drawn on DOM with reagent/react.js. Accelerometer used to work with 2011 Macbook Pro but nowadays works only on mobile devices.
There is a working build in branch gh-pages
.
git clone [email protected]:jasalt/cljsout.git
cd cljsout
git checkout gh-pages
python -m http.server
Then open http://localhost:8000/.
Does not build anymore as Reagi library got abandoned around 2014 and depends on older core/async version etc. There is a fork from 2018 that might work https://github.com/chourave/reagi/tree/release-0.11.0 but requires loading it in custom way with Leiningen project.clj
. Converting this project plus 2018 Reagi fork to more modern deps.edn
does not seem to be worth it.
- Clone repo and navigate to project folder
- run
lein figwheel dev
- Open http://localhost:3449 after jvm has warmed up.
GPLv3