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/include/player.h

19 lines
384 B
C

#ifndef _DEF_PLAYER
#define _DEF_PLAYER
#include "vec.h"
#include "camera.h"
#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;
void player_step(Player *player, Input *input);
void player_draw(Player *player, Camera *camera);
#endif /* _DEF_PLAYER */