aboutsummaryrefslogtreecommitdiff
path: root/src/bullet.odin
diff options
context:
space:
mode:
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