accentuate jump squish effect

This commit is contained in:
kdx 2023-03-19 05:06:22 +00:00
parent 3e0db95027
commit 49d6b57dd0
1 changed files with 4 additions and 6 deletions

View File

@ -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;