HTML 5 Pac-Man written in ClojureScript.
Clojure CSS
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
resources/public
src-cljs/pacman
src/pacman
test/pacman/test
.gitignore
README.md
project.clj

README.md

Pac-Man CLJS

HTML5 + CLJS Pac-Man

Somewhat Working Version

Prerequisites

  • Leiningen 2
  • [lein-cljsbuild "0.3.0"]
  • [ring-mock "0.1.3"]

Running

Once you have the right prerequisites, run lein deps.

To compile, fire up cljsbuild

lein cljsbuild once

or if you want to build continuously

lein cljsbuild auto 

To start a Clojure web server for the application, run

lein ring server <desired port>

or point a server at the directory

pacman/resources/public/

Resources

Understanding pacman ghost behavior

Todo

  1. Use requestAnimationFrame
  2. Add sound
  3. Fix catastrophic tunnel bug
  4. Make ghost strategy random and more efficient
  5. Fix minor movement and drawing problems
  6. Make game work in advanced mode
  7. Remove browser repl code for production
  8. Move readonly code to a map that is not recopied
  9. Use defrecord for some data