This repository has been archived on 2022-01-13. You can view files and clone it, but cannot push or open issues or pull requests.
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 17:07:05 +01:00
|
|
|
player->vars.acceleration /= 4;
|
|
|
|
player->vars.friction /= 4;
|
2021-01-09 14:28:14 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
void player_mod_glue(Player *player) {
|
|
|
|
player->vars.acceleration = 0;
|
2021-01-09 17:07:05 +01:00
|
|
|
player->vars.friction = 1;
|
2021-01-09 14:28:14 +01:00
|
|
|
}
|