aboutsummaryrefslogtreecommitdiff
path: root/src/bullet.odin
diff options
context:
space:
mode:
authoriamcheeseman <[hidden email]>2026-01-16 16:12:54 -0500
committeriamcheeseman <[hidden email]>2026-01-16 16:12:54 -0500
commitf60ae3ed7160a4f3c523b2f56ad06dfc8319aca4 (patch)
tree56dd395859bde0b73d1e9c899d3bddfbc010eadf /src/bullet.odin
parent30a49954e4cb434a1c47503c839feb20558a202b (diff)
idk i think i made things better
Diffstat (limited to 'src/bullet.odin')
-rw-r--r--src/bullet.odin6
1 files changed, 1 insertions, 5 deletions
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