Skip to content

Instantly share code, notes, and snippets.

@tcql
Created September 20, 2013 01:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tcql/6632200 to your computer and use it in GitHub Desktop.
Save tcql/6632200 to your computer and use it in GitHub Desktop.
git clone https://github.com/tchannel/phaser-coffeescript.git
cd phaser-coffeescript
# The branch i'm testing on. The phaser dependency
# Is pointing at a fork I made of phaser (tchannel/phaser)
# Where i setup the sourcemap and build tasks
git checkout origin/test-phaser-sourcemap
npm install
# I haven't made a task or anything for this yet...
# Also, grand scheme, coffee support doesn't matter.
# but for now, you have to do it
./node_modules/coffee-script/bin/coffee -bo build -c src
node server.js
# Now visit localhost:8080/index.html
# you should get the 'hello phaser' example running.
# If you pull up the browser's console and (at least in chrome...)
# Go to the "Sources" tab, and expand the sources list in the top left
# corner, you'll see a folder for "node_modules/Phaser/build
# and underneath that, "../src", which contains all the source files.
# If an error occurs in the code, the line number and file referenced
# in the console should point at the source file, not some annoying spot
# in the min.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment