A Clojure(Script) Platform Game using play-cljc.
Help the apprentice Ninja, lost in the wild, collect the hoverboard power-packs and avoid the falling weapons.
The game library used is play-cljc, A library for making games that run in both OpenGL and WebGL, by Zach Oakes. For the other libraries used with play-cljc, check the section Companion Libraries.
The play-cljc-examples repository provided a good starting point, and some of the boilerplate code is still used.
To build the project, use the Clojure CLI tool.
To develop in a browser with live code reloading:
clj -M:dev
To build a release version for the web:
clj -M:prod
To develop the native version:
clj -M:dev native
clj -M:dev:macos native # Warning for macos
To build the native version as a jar file:
clj -M:prod uberjar
- ⬅️ - Left
- ➡️ - Right
- ⬆️ - Jump
- 🔄 - Restart game (in the browser)
- spacebar - Pause game
- q - Quick restart
In April 2019 at the Dutch Clojure Days in Amsterdam, I attended the interesting and entertaining talk How I Supercharged Learning Clojure through Gamification by @ladymeyy. Thought it would be fun to write a little game in Clojure (with my limited experience at the time). Two weeks later, I was away for the Easter weekend and during my daughter's afternoon naps, I wrote this little game.
The title, in the wild, is a reference to the sections of the same name in the enjoyable book from Russ Olsen Getting Clojure.
See License