Collab_RPG/src/player.h

27 lines
573 B
C
Raw Normal View History

#ifndef PLAYER_H
#define PLAYER_H
/* Struct that define player parameters */
typedef struct {
unsigned short int x, y; /* The position of the player */
2023-07-07 14:50:30 +02:00
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 ! */
2023-07-07 14:50:30 +02:00
void PlayerDraw(void);
2023-07-07 14:50:30 +02:00
void PlayerLeft(void);
2023-07-07 14:50:30 +02:00
void PlayerRight(void);
2023-07-07 14:50:30 +02:00
void PlayerUp(void);
2023-07-07 14:50:30 +02:00
void PlayerDown(void);
2023-07-07 14:50:30 +02:00
void PlayerAction(void);
#endif