lol its in c
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

31 lines
495 B

#ifndef IS_PLAYER_H_
#define IS_PLAYER_H_
#include <stdint.h>
#define PLAYER_INV_SIZE 32
typedef enum {
PLAYER_STATE_STAND,
PLAYER_STATE_WALK,
PLAYER_STATE_JUMP,
} player_state_t;
typedef struct {
uint8_t x;
uint8_t y_lo;
uint8_t y_hi;
uint16_t vy;
uint8_t dir;
uint8_t state;
// TODO: Define inventory if there's time
} player_t;
extern player_t PLAYER;
extern const uint8_t player_map[];
void player_init(void);
void player_update(void);
#endif