From f60ae3ed7160a4f3c523b2f56ad06dfc8319aca4 Mon Sep 17 00:00:00 2001 From: iamcheeseman <[hidden email]> Date: Fri, 16 Jan 2026 16:12:54 -0500 Subject: idk i think i made things better --- src/bullet.odin | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/bullet.odin') diff --git a/src/bullet.odin b/src/bullet.odin index f2e2e47..da6af73 100644 --- a/src/bullet.odin +++ b/src/bullet.odin @@ -25,12 +25,8 @@ make_bullet :: proc( ) -> (Entity_Handle, ^Bullet) { sprite: Sprite init_sprite(&sprite, image_id) + set_sprite_offset_percentage(&sprite, {0, 0.5}) - sprite.offset = { - 0, - // math.round(f32(sprite.width) * 0.5), - math.round(f32(sprite.height) * 0.5), - } sprite.rotation = math.atan2(vel.y, vel.x) * math.DEG_PER_RAD sprite.pos = pos -- cgit v1.3-2-g0d8e