From d757dfd90fc1919e85178edb8a4d75f88c7f5b0f Mon Sep 17 00:00:00 2001 From: "A.M. Rowsell" Date: Thu, 9 Apr 2026 17:06:39 -0400 Subject: [PATCH] render: updated player display code to use new position field --- src/render.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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) {