Skip to content
Browse files

controls should not respond to dt -- it'll be figured out by the scen…

…e update
  • Loading branch information...
1 parent 04c1595 commit 4e9e7a266b6187dcd61038934710b891eaa0cc0f @chrisdickinson committed Nov 21, 2010
Showing with 3 additions and 3 deletions.
  1. +3 −3 js/controllers.js
View
6 js/controllers.js
@@ -42,15 +42,15 @@ KeyboardController.prototype.update = function(dt) {
this._lastDY = this._lastDY || 0;
if(this.jumpDown && this.jumpCount > 0) {
- this.obj.dy += (dt/1000) * 15000;
+ this.obj.dy += 150;
this.obj.freefall = true;
this.jumpCount -= (dt/1000);
}
if(this.leftDown) {
- this.obj.dx = (dt/1000) * -20000 * (this.shiftDown ? 2 : 1);
+ this.obj.dx = -400 * (this.shiftDown ? 2 : 1);
} else if(this.rightDown) {
- this.obj.dx = (dt/1000) * 20000 * (this.shiftDown ? 2 : 1);
+ this.obj.dx = 400 * (this.shiftDown ? 2 : 1);
} else {
this.obj.dx = 0;
}

0 comments on commit 4e9e7a2

Please sign in to comment.
Something went wrong with that request. Please try again.