Gravity fixed
This commit is contained in:
parent
99f75a03ae
commit
52123763d3
|
@ -98,7 +98,7 @@ export class Game
|
|||
);
|
||||
|
||||
/* Handle falling */
|
||||
this.mrCroc.position.y += this.mrCroc.fallSpeed;
|
||||
this.mrCroc.position.y += this.mrCroc.fallSpeed * delta * 0.6;
|
||||
this.mrCroc.fallSpeed += this.level.gravity * delta;
|
||||
|
||||
/* Handle ground collision */
|
||||
|
|
|
@ -62,4 +62,5 @@ export default class RetroAnimation extends RetroSprite
|
|||
|
||||
this.isPlaying = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue