jtmm2/include/player.h

20 lines
424 B
C
Raw Normal View History

#ifndef _DEF_PLAYER
#define _DEF_PLAYER
#include "vec.h"
2020-09-11 18:07:53 +02:00
#include "camera.h"
2020-09-17 14:30:46 +02:00
#include "input.h"
typedef struct Player
{
Vec pos;
Vec hbox; /* the bottom right corner of the player's hitbox */
Vec origin; /* the origin of the player (offset) */
} Player;
2020-09-17 14:30:46 +02:00
void player_step(Player *player, Input *input);
2020-09-11 18:07:53 +02:00
void player_draw(Player *player, Camera *camera);
void player_draw_debug(Player *player);
2020-09-11 18:07:53 +02:00
#endif /* _DEF_PLAYER */