Skip to content

Clojure(Script) Game - Help the apprentice ninja 🥷 collect power-packs and avoid weapons.

License

Notifications You must be signed in to change notification settings

gwena/in-the-wild

Repository files navigation

In the Wild

A Clojure(Script) Platform Game using play-cljc.

Alt text

Help the apprentice Ninja, lost in the wild, collect the hoverboard power-packs and avoid the falling weapons.

Game Libraries

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.

Build and Run

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

Play

Play the online version

Alt text

Controls

  • ⬅️ - Left
  • ➡️ - Right
  • ⬆️ - Jump
  • 🔄 - Restart game (in the browser)
  • spacebar - Pause game
  • q - Quick restart

Origins

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.

Graphics, Font

See License

About

Clojure(Script) Game - Help the apprentice ninja 🥷 collect power-packs and avoid weapons.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published