TP3 + classe Skybox

This commit is contained in:
Marc-Eric Martel
2021-10-12 15:58:54 -04:00
parent 6f3dd99ab7
commit 167548dfc2
9 changed files with 135 additions and 89 deletions

View File

@@ -37,7 +37,9 @@ void Player::Move(bool front, bool back, bool left, bool right, bool jump, bool
if (dash) dashtimeout = 2;
if ((jump || dash) && dbljump < 2 && !jumped ) {
if (dbljump >= 2) jump = false;
if ((jump || dash) && !jumped ) {
accjmp += jump? m_jumpforce: 0.1f;
jumped = true;
dbljump++;