summaryrefslogtreecommitdiff
path: root/src/player.c
blob: 85bf2a7e7bdd5591d3378bb65a5b143dce43b663 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#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);
}