accentuate jump squish effect
This commit is contained in:
parent
3e0db95027
commit
49d6b57dd0
10
src/player.c
10
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;
|
||||
|
|
Loading…
Reference in New Issue