Collab_RPG/src/player.c

41 lines
521 B
C
Raw Normal View History

#include "player.h"
#include "map.h"
#include <gint/display.h>
#define P_WIDTH 16
#define P_HEIGHT 16
extern Player MyPlayer;
extern struct Map *map_level;
extern bopti_image_t demo_player_img;
void PlayerDraw( void )
{
dimage(MyPlayer.px-P_WIDTH/2, MyPlayer.py-P_HEIGHT/2, &demo_player_img);
}
void PlayerLeft( void )
{
MyPlayer.x--;
}
void PlayerRight( void )
{
MyPlayer.x++;
}
void PlayerUp( void )
{
MyPlayer.y--;
}
void PlayerDown( void )
{
MyPlayer.y++;
}
void PlayerAction( void )
{
}