var PLAYGROUND_HEIGHT = 400; |
keyPressed
. I don't see an obvious error but I would recommend to get rid of your keyup
callback and do something like that instead:$.playground().registerCallback(function(){ |
keyPressed
somewhere else ? Could you possibly create a jsFiddle (http://jsfiddle.net/) that reproduce the problem you're describing because when I try to run you code it works fine for me....$("#player").setAnimation(playerAnimation["idle"])
where the $
was missingIt looks like you're new here. If you want to get involved, click one of these buttons!