Collab_RPG/src/player.h

30 lines
603 B
C
Raw Normal View History

#ifndef PLAYER_H
#define PLAYER_H
#include <stdint.h>
/* Struct that define player parameters */
typedef struct {
unsigned short int x, y; /* The position of the player */
short int 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