diff options
Diffstat (limited to 'src/player.c')
-rw-r--r-- | src/player.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/player.c b/src/player.c index 4490f93..b94290d 100644 --- a/src/player.c +++ b/src/player.c @@ -1,3 +1,10 @@ +#include <math.h> #include "player.h" -// TODO: Implement the functions that manipulate a player +int player_update(player_t *player) +{ + player->anglesin = sinf(player->angle); + player->anglecos = cosf(player->angle); + + return 0; +} |