Even better glue. Praise the glue.
This commit is contained in:
parent
42e7c4f9d2
commit
318a4e3626
|
@ -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) {
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Reference in New Issue