Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am jugerardo on github.
  • I am jugerardo (https://keybase.io/jugerardo) on keybase.
  • I have a public key ASDwsHVnKe9cijpxTAf0NefjNNIk8V1lETkZ5xd0q1egEgo

To claim this, I am signing this object:

@jugerardo
jugerardo / carrito.js
Created December 16, 2012 08:15
Moving a bitmap with WASD using easel.js
var KEYCODE_W = 87; //usefull keycode
var KEYCODE_A = 65; //usefull keycode
var KEYCODE_D = 68; //usefull keycode
var KEYCODE_S = 83; //usefull keycode
// Movement flags
var moveRight = false;
var moveLeft = false;
var moveUp = false;
var moveDown = false;