From 49d6b57dd074554b3dc124377218df964f91b02b Mon Sep 17 00:00:00 2001 From: kdx Date: Sun, 19 Mar 2023 05:06:22 +0000 Subject: accentuate jump squish effect --- src/player.c | 10 ++++------ 1 file 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; -- cgit v1.2.3