Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Simple game implemented in both clojurescript and coffeescript
JavaScript Other
branch: master
Failed to load latest commit information.
clojure more idiomatic parenthesis, and more concise clojure code
coffee defs are now private
.gitignore removing out files Update


Simple click and kill game implemented in both ClojureScript and Coffeescript.

Demo can be played here

CoffeeScript Version

It can be found on coffee folder, and it requires CoffeeScript 1.12. Compiling all coffee files can be done with:

   $ coffee -wcbo jslib/ src/

Or you can run it with

The included coffee/physicsGame.html can be run directly, and imports everything using relative paths.

ClojureScript Version

It is located on clojure folder, and it requires the latest version of ClojureScript (it is still unversioned, so using the one from 2011-08-11 should be fine). Compiling all coffee files can be done with:

  $ cljsc game.clj '{:pretty-print true}' > game.js

This script is included in Unlike CoffeeScript's version, this won't watch the clojure files for changes.

The included clojure/physicsGame.html can be opened directly, and imports everything using relative paths. Unlike CoffeeScript version, you need to compile it before running. This is because ClojureScript's out folder is filled with files whose names are randomly changed after each compilation, which make them quite messy to track using a SCM.

Note: does not work on latest version of ClojureScript (mostly due to the change in access to variables), as this was writen a few weeks after ClojureScript was released.


Created by Daniel Ribeiro

Released under the MIT License:

Something went wrong with that request. Please try again.