wehfou/src/player.c

19 lines
275 B
C

#include "player.h"
#include "lzy.h"
static float x, y, spd_x, spd_y;
void player_init(float nx, float ny)
{
x = nx;
y = ny;
spd_x = 0.0f;
spd_y = 0.0f;
}
void player_draw(void)
{
LZY_DrawSetColor(255, 0, 255);
LZY_DrawFillRect(x, y, PLAYER_WIDTH, PLAYER_HEIGHT);
}