2021-01-09 16:52:03 +01:00
|
|
|
#include "player_modifiers.h"
|
2021-01-09 14:28:14 +01:00
|
|
|
#include "player.h"
|
|
|
|
|
|
|
|
void player_mod_ice(Player *player) {
|
2021-01-09 16:52:03 +01:00
|
|
|
player->vars.acceleration *= 2;
|
|
|
|
float *friction = &player->vars.friction;
|
|
|
|
*friction = 1 - ((1 - *friction) / 2);
|
2021-01-09 14:28:14 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
void player_mod_glue(Player *player) {
|
|
|
|
player->vars.acceleration = 0;
|
2021-01-09 16:52:03 +01:00
|
|
|
player->vars.friction = 0;
|
2021-01-09 14:28:14 +01:00
|
|
|
}
|