camera minor fix
This commit is contained in:
parent
37549d0de0
commit
7102b8eefc
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user