From 00993c395df4986eca510bc6ba750beccf224d6b Mon Sep 17 00:00:00 2001 From: Ania Kubow <51362610+kubowania@users.noreply.github.com> Date: Wed, 7 Jul 2021 15:10:55 +0100 Subject: [PATCH] Update game.js --- game.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/game.js b/game.js index 7ee3079..29d9dd8 100644 --- a/game.js +++ b/game.js @@ -6,6 +6,7 @@ kaboom({ clearColor: [0, 0, 0, 1], }) +// Speed identifiers const MOVE_SPEED = 120 const JUMP_FORCE = 360 const BIG_JUMP_FORCE = 550 @@ -13,6 +14,8 @@ let CURRENT_JUMP_FORCE = JUMP_FORCE const FALL_DEATH = 400 const ENEMY_SPEED = 20 +// Game logic + let isJumping = true loadRoot('https://i.imgur.com/')