Skip to content

Instantly share code, notes, and snippets.

@heath
Forked from dwilkins/index.html.haml
Created April 28, 2013 19:56
Show Gist options
  • Select an option

  • Save heath/5478182 to your computer and use it in GitHub Desktop.

Select an option

Save heath/5478182 to your computer and use it in GitHub Desktop.
#crawler-js-container
#crawler-js
:coffeescript
window.joystick = {};
($ document).ready ->
MicroEvent.mixin VirtualJoystick
window.joystick = new VirtualJoystick({
container : document.getElementById('crawler-js-container'),
mouseSupport : true
})
window.joystick.bind '_onMove', ->
console.log 'notified date', date
= javascript_include_tag "virtualjoystick/virtualjoystick.js"
= javascript_include_tag "microevents/microevent-debug.js"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment