A library for making games that run in both OpenGL and WebGL. There's no black box wasm
trickery going on here; just good old fashioned cljc files, some macro magic, and absolutely zero social life. Every coffee shop barista near me agrees that this game library is basically the greatest one ever. Other game libraries? Total disasters! Everyone agrees. Believe me.
You can generate a new project with the The Clojure CLI Tool:
clj -Sdeps '{:deps {leiningen {:mvn/version "2.9.0"}}}' -m leiningen.core.main new play-cljc hello-world
This will start you off with a little platformer. It will contain a README with all the commands you need to use. To make music, edna is a good companion library, and the template above is preconfigured with it.
- Check out the example games
- Read the dynadocs
- Join the discussion on r/playcljc
- Watch my intro screencast
- Install the Clojure CLI tool
- To develop the web version with figwheel:
clj -A:dev dev.clj
- To develop the native version:
clj -A:dev dev.clj native
- On Mac OS, you will need to run
clj -A:dev -J-XstartOnFirstThread dev.clj native
- On Mac OS, you will need to run
- To install the release version:
clj -A:prod prod.clj install
All files that originate from this project are dedicated to the public domain. I would love pull requests, and will assume that they are also dedicated to the public domain.