diff options
author | kdx <kikoodx@paranoici.org> | 2023-03-17 13:45:20 +0100 |
---|---|---|
committer | kdx <kikoodx@paranoici.org> | 2023-03-17 13:46:20 +0100 |
commit | f3f3100dbd1f8ff31c3e6fd2acfd2c6edffcc181 (patch) | |
tree | ee2d07262e282120eb1776f3491272c91336e8eb /src/player.c | |
parent | b6e8281daa60e60e2ae81569b5547f1e3ac3a72b (diff) | |
download | hyperultra-f3f3100dbd1f8ff31c3e6fd2acfd2c6edffcc181.tar.gz |
cringe
Diffstat (limited to 'src/player.c')
-rw-r--r-- | src/player.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/src/player.c b/src/player.c index 9778746..dc60dbb 100644 --- a/src/player.c +++ b/src/player.c @@ -2,6 +2,7 @@ #include "entity.h" #include "game.h" #include "lzy.h" +#include "cfg.h" #include <string.h> static void @@ -16,18 +17,21 @@ static void player_draw(Entity *this, Game *g) { (void)g; - LZY_DrawSetColor(0, 0, 0); - LZY_DrawFillRect(this->pos[0] - this->width / 2, - this->pos[1] - this->height / 2, - this->width, this->height); + LZY_DrawSetColor(BLACK); + LZY_DrawRect(this->pos[0] - this->width / 2, + this->pos[1] - this->height / 2, + this->width, this->height); + LZY_DrawRect(this->pos[0] - this->width / 2 + 1, + this->pos[1] - this->height / 2 + 1, + this->width - 2, this->height - 2); } void player_init(Entity *this) { memset(this, 0, sizeof(*this)); - this->pos[0] = 16; - this->pos[1] = 16; + this->pos[0] = 32; + this->pos[1] = 32; this->type = ET_PLAYER; this->update = player_update; this->draw = player_draw; |