Skip to content

Commit 8b37166

Browse files
committed
fix demo
1 parent 5608c99 commit 8b37166

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/box2d/game.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,15 +173,15 @@ require(['frozen/GameCore', 'frozen/ResourceManager', 'dojo/keys', 'frozen/box2d
173173
},
174174
handleInput: function(im){
175175
if(im.keyActions[keys.LEFT_ARROW].isPressed()){
176-
box.applyImpulse(nyan.id, 180, speed);
176+
box.applyImpulseDegrees(nyan.id, 270, speed);
177177
}
178178

179179
if(im.keyActions[keys.RIGHT_ARROW].isPressed()){
180-
box.applyImpulse(nyan.id, 0, speed);
180+
box.applyImpulseDegrees(nyan.id, 90, speed);
181181
}
182182

183183
if(im.keyActions[keys.UP_ARROW].isPressed()){
184-
box.applyImpulse(nyan.id, 270, speed);
184+
box.applyImpulseDegrees(nyan.id, 0, speed);
185185
}
186186

187187
//.play sounds with the space bar !

0 commit comments

Comments
 (0)