From 7102b8eefc423cc837bc9b06e0ec2287a1615447 Mon Sep 17 00:00:00 2001 From: Mottributo <87079566+Mottributo@users.noreply.github.com> Date: Sat, 25 Mar 2023 22:49:58 +0300 Subject: [PATCH] camera minor fix --- sketch.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sketch.js b/sketch.js index 41164fb..4171510 100644 --- a/sketch.js +++ b/sketch.js @@ -285,7 +285,7 @@ function startGame(level_start) { } }, }; - cameraPosX = gameChar.x; + cameraPosX = gameChar.x - width/2; // Creating trees, clouds, mountains, rivers, collectables. { // Creating trees, clouds, mountains, rivers, collectables, platforms, enemies. @@ -474,7 +474,7 @@ function draw() { else gameChar.sprite = 1; } } - // Depicting plummeting + // Doing plummeting if (gameChar.isPlummeting) { gameChar.y += 3; }