From d0c6b363b8d976c339a980396b15a8563dc4c989 Mon Sep 17 00:00:00 2001 From: Bill Rossi Date: Tue, 4 Mar 2025 20:49:52 -0500 Subject: [PATCH] Draw player image with sprite offset --- player.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/player.c b/player.c index ed38d74..1a0440c 100644 --- a/player.c +++ b/player.c @@ -34,7 +34,7 @@ void handle_player_input(Player *p) { } void draw_player(Player *p) { - DrawTextureRec(p->spritesheet, (Rectangle) { 128, 128, 128, 128 }, p->position, WHITE); + DrawTextureRec(p->spritesheet, (Rectangle) { 128, 128, 128, 128 }, (Vector2) { p->position.x - 64, p->position.y - 29 }, WHITE); } void move_player(Player *p) {