diff --git a/games/Super_Platformer.js b/games/Super_Platformer.js index 76ddd3d9d..d05e11b0a 100644 --- a/games/Super_Platformer.js +++ b/games/Super_Platformer.js @@ -1,6 +1,12 @@ /* First time? Check out the tutorial game: https://sprig.hackclub.com/gallery/getting_started + +@title: Super_Platformer +@author: KinjalPriya000 +@tags: [] +@img: "" +@addedOn: 2024-04-11 */ const player = "p"; @@ -324,6 +330,8 @@ function onUpdatePosition() { } afterInput(async () => { onUpdatePosition(); + let isBoxPromiseRunning; + let isPlayerPromiseRunning; if (!isBoxPromiseRunning) { isBoxPromiseRunning = true; const boxGravityPromise = (async () => { @@ -340,5 +348,5 @@ afterInput(async () => { isPlayerPromiseRunning = false; }); } - await Promise.all([gravityPromise, boxGravityPromise]); -}); \ No newline at end of file + await Promise.all([playerGravityPromise, /*boxGravityPromise*/]); +});