DoodOcaml is an HTML 5 canvas web-browser implementation of the Doodle Jump game written in Ocaml.
- Web-based playable implementation with graphics (Ocaml transpiled to javascript).
- Procedural level generator that randomly generates playable levels.
Follows the original repo in terms of file structure but almost all the code is rewritten. Everything has been written from scratch (not sure if that's a good thing...), from the loading of sprites to particle collision detection.
-
Install Dune, then js_of_ocaml.
-
Run
eval opam config env
-
Run
dune build ./main.bc.js
Dune will warn you aboutmain.bc.js
already existing. Delete the one in the top level (it's the one for github pages) and re-run the command. When you're done simply re-copy the file to the top level so that gihub pages can see it. -
Open
index.html
to play!