diff --git a/js/Game.js b/js/Game.js index 578f9bf..b82befa 100644 --- a/js/Game.js +++ b/js/Game.js @@ -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 */ diff --git a/js/retro/RetroAnimation.js b/js/retro/RetroAnimation.js index 83a4534..ceb2268 100644 --- a/js/retro/RetroAnimation.js +++ b/js/retro/RetroAnimation.js @@ -62,4 +62,5 @@ export default class RetroAnimation extends RetroSprite this.isPlaying = false; } -} \ No newline at end of file +} +