mirror of
https://git.leinelab.org/Mal/mr-crocs-adventures.git
synced 2026-03-18 05:12:23 +01:00
Gravity fixed
This commit is contained in:
@@ -98,7 +98,7 @@ export class Game
|
|||||||
);
|
);
|
||||||
|
|
||||||
/* Handle falling */
|
/* 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;
|
this.mrCroc.fallSpeed += this.level.gravity * delta;
|
||||||
|
|
||||||
/* Handle ground collision */
|
/* Handle ground collision */
|
||||||
|
|||||||
@@ -63,3 +63,4 @@ export default class RetroAnimation extends RetroSprite
|
|||||||
this.isPlaying = false;
|
this.isPlaying = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user