diff --git a/src/render.c b/src/render.c index 9dcd11c..3153e80 100644 --- a/src/render.c +++ b/src/render.c @@ -30,11 +30,12 @@ void render_map(const Map *map) { } void render_player(const Player *p, Texture2D *ptile) { - //Rectangle rect = {(float)(p->position.x * TILE_SIZE), (float)(p->position.y * TILE_SIZE), (float)TILE_SIZE, - // (float)TILE_SIZE}; - //DrawRectangleRec(rect, BLUE); + // Rectangle rect = {(float)(p->position.x * TILE_SIZE), (float)(p->position.y * TILE_SIZE), (float)TILE_SIZE, + // (float)TILE_SIZE}; + // DrawRectangleRec(rect, BLUE); - DrawTexture(*ptile, (float)(p->x * TILE_SIZE), (float)(p->y * TILE_SIZE), (Color){255, 255, 255, 255}); + DrawTexture(*ptile, (float)(p->position.x * TILE_SIZE), (float)(p->position.y * TILE_SIZE), + (Color){255, 255, 255, 255}); } void render_enemies(const Enemy *enemies, int count) {