mirror of
https://git.planet-casio.com/Slyvtt/Collab_RPG.git
synced 2025-01-06 08:53:43 +01:00
26 lines
573 B
C
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
|