Even better glue. Praise the glue.

This commit is contained in:
KikooDX 2021-01-16 11:18:54 +01:00
parent 42e7c4f9d2
commit 318a4e3626
2 changed files with 4 additions and 0 deletions

View File

@ -76,6 +76,9 @@ void player_set_vars(Player *player, const Level *level) {
/* apply modifiers */
player_mod_ice(player, side_flags[I_ICE]);
player_mod_glue(player, side_flags[I_GLUE]);
/* fix wrong values */
if (player->vars.friction > 1)
player->vars.friction = 1;
}
void player_move(Player *player, const Level *level) {

View File

@ -17,6 +17,7 @@ void player_mod_glue(Player *player, uint8_t sides) {
player->spd.y = 0;
player->vars.gravity = 0;
player->vars.acceleration /= 2;
player->vars.friction *= 2;
}
}