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.
jtmm2-old/src/player_modifiers.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;
}