diff --git a/bullet.c b/bullet.c index 645394d..b07bb1a 100644 --- a/bullet.c +++ b/bullet.c @@ -51,7 +51,7 @@ void draw_bullets() Texture t = textures[bullets[i].type]; Rectangle source = {0, 0, t.width, t.height}; - Rectangle dest = {bullets[i].pos.x, bullets[i].pos.y, t.width, t.height}; + Rectangle dest = {bullets[i].pos.x + t.width/2, bullets[i].pos.y + t.height/2, t.width, t.height}; Vector2 origin = {t.width/2, t.height/2}; DrawTexturePro(t, source, dest, origin, bullets[i].angle + 90, WHITE);