blob: ee5270ba210e665962ae5f2ef888b03798b05450 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#ifndef PLAYER_H
#define PLAYER_H
#include "common.h"
typedef struct player {
struct xyz pos, velocity; // vectors for the player
float angle, anglesin, anglecos, yaw; // angle, and its sine and cosine
size_t sector; // the sector that the player is in
} player_t;
int player_update(player_t *player);
// TODO: Add functions to manipulate a player
#endif
|