14 lines
309 B
C
14 lines
309 B
C
#include "player_modifiers.h"
|
|
#include "player.h"
|
|
|
|
void player_mod_ice(Player *player) {
|
|
player->vars.acceleration *= 2;
|
|
float *friction = &player->vars.friction;
|
|
*friction = 1 - ((1 - *friction) / 2);
|
|
}
|
|
|
|
void player_mod_glue(Player *player) {
|
|
player->vars.acceleration = 0;
|
|
player->vars.friction = 0;
|
|
}
|