diff options
author | kdx <kdx.42@42l.fr> | 2023-03-19 05:06:22 +0000 |
---|---|---|
committer | kdx <kdx.42@42l.fr> | 2023-03-19 05:06:22 +0000 |
commit | 49d6b57dd074554b3dc124377218df964f91b02b (patch) | |
tree | e788f5f821556454bfdbc11364baea5cb6cea30c | |
parent | 3e0db9502745a225fadd62f396c380138d7d3d80 (diff) | |
download | hyperultra-49d6b57dd074554b3dc124377218df964f91b02b.tar.gz |
accentuate jump squish effect
-rw-r--r-- | src/player.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/player.c b/src/player.c index 3b0b064..070d6a9 100644 --- a/src/player.c +++ b/src/player.c @@ -21,21 +21,19 @@ IMPL_UPDATE() { switch (diry) { case -1: this->vel[1] = -2.8; - this->player.scale_x = 0.75; - this->player.scale_y = 1.25; + this->player.scale_y = 1.40; break; default: case 0: this->vel[1] = -3.8; - this->player.scale_x = 0.66; - this->player.scale_y = 1.33; + this->player.scale_y = 1.60; break; case 1: this->vel[1] = -4.8; - this->player.scale_x = 0.5; - this->player.scale_y = 1.5; + this->player.scale_y = 2.0; break; } + this->player.scale_x = 1.0 / this->player.scale_y; } else if (on_ground && input_down(K_X)) { extern double tick; this->vel[0] *= 3; |