From a351f850cf3c8077adb016cf933b91ca7da192f5 Mon Sep 17 00:00:00 2001 From: paulhirst <54931691+paulhirst@users.noreply.github.com> Date: Fri, 11 Oct 2024 19:25:53 -1000 Subject: [PATCH] Update classShip.js to apply game gravity to pod rather than fixes value, so that reverse gravity acts correctly on the pod --- thrust/classShip.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thrust/classShip.js b/thrust/classShip.js index 7ef16be..636f7be 100644 --- a/thrust/classShip.js +++ b/thrust/classShip.js @@ -103,7 +103,7 @@ function Ship() { // calculate new pod position oGame.oPod.iPositionX += oGame.oPod.iVectorX; - oGame.oPod.iPositionY += oGame.oPod.iVectorY + 0.1; + oGame.oPod.iPositionY += oGame.oPod.iVectorY + oGame.oLevel.iGravity; // calculate push/pull of the rod var iDeltaX = (oGame.oPod.iPositionX - this.iPositionX);