aboutsummaryrefslogtreecommitdiffstats
path: root/src/shooterScreen.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/shooterScreen.c')
-rw-r--r--src/shooterScreen.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shooterScreen.c b/src/shooterScreen.c
index 6b1322d..b3adb53 100644
--- a/src/shooterScreen.c
+++ b/src/shooterScreen.c
@@ -80,9 +80,9 @@ void updateShooterScreenJump(ShooterScreen* shooterScreen, Game* game)
case 0: // No Jumpy
break;
case 1: // Jump up
- player->velocity.y = PLAYER_JUMP_SPEED;
+ player->velocity.y = PLAYER_JUMP_SPEED * pow(((PLAYER_JUMP_HEIGHT + PLAYER_HEIGHT) - player->position.y), 2.0);
- if (player->position.y >= PLAYER_JUMP_HEIGHT + PLAYER_HEIGHT)
+ if ((int)player->velocity.y == 0)
{
player->jumpStage = 2;
}