camera minor fix

This commit is contained in:
Mottributo 2023-03-25 22:49:58 +03:00
parent 37549d0de0
commit 7102b8eefc

View File

@ -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.
{ {
// Creating trees, clouds, mountains, rivers, collectables, platforms, enemies. // Creating trees, clouds, mountains, rivers, collectables, platforms, enemies.
@ -474,7 +474,7 @@ function draw() {
else gameChar.sprite = 1; else gameChar.sprite = 1;
} }
} }
// Depicting plummeting // Doing plummeting
if (gameChar.isPlummeting) { if (gameChar.isPlummeting) {
gameChar.y += 3; gameChar.y += 3;
} }