aboutsummaryrefslogtreecommitdiff
path: root/src/upgrade_pickup.odin
diff options
context:
space:
mode:
Diffstat (limited to 'src/upgrade_pickup.odin')
-rw-r--r--src/upgrade_pickup.odin8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/upgrade_pickup.odin b/src/upgrade_pickup.odin
index b491bd5..30b262c 100644
--- a/src/upgrade_pickup.odin
+++ b/src/upgrade_pickup.odin
@@ -32,7 +32,13 @@ draw_upgrade :: proc() {
return
}
- draw_texture(get_image(upgrade.image_id), upgrade.pos)
+ tex := get_image(upgrade.image_id)
+
+ draw_texture(
+ tex,
+ upgrade.pos,
+ offset = linalg.round(Vec2{f32(tex.width), f32(tex.height)} * 0.5)
+ )
}
object_spawner_upgrade :: proc(obj: Object_Resource) {