Collab_RPG/src/player.h
2023-07-07 14:50:30 +02:00

26 lines
573 B
C

#ifndef PLAYER_H
#define PLAYER_H
/* Struct that define player parameters */
typedef struct {
unsigned short int x, y; /* The position of the player */
unsigned char px, py; /* The position of the player on screen */
unsigned short int life; /* How many lives the player still has between 0
* and 100. */
} Player;
/* This function should be called after drawing the map ! */
void PlayerDraw(void);
void PlayerLeft(void);
void PlayerRight(void);
void PlayerUp(void);
void PlayerDown(void);
void PlayerAction(void);
#endif