fixes #78 revisited weight handycap

This commit is contained in:
Jeena 2015-02-15 01:38:16 +01:00
parent b6d67a0581
commit e404ad3598
7 changed files with 27 additions and 16 deletions

View file

@ -278,7 +278,10 @@ function (Parent, Box2D, Settings, CollisionDetector, Item, Nc) {
if (this.isStanding()) {
this.body.SetAwake(true);
var vector = new Box2D.Common.Math.b2Vec2(0, -Settings.JUMP_SPEED);
var jumpSpeed = Settings.JUMP_SPEED;
var vector = new Box2D.Common.Math.b2Vec2(0, -jumpSpeed);
this.body.SetLinearVelocity(vector);
this.setStanding(false);