diff options
| author | iamcheeseman <[hidden email]> | 2026-01-16 16:12:54 -0500 |
|---|---|---|
| committer | iamcheeseman <[hidden email]> | 2026-01-16 16:12:54 -0500 |
| commit | f60ae3ed7160a4f3c523b2f56ad06dfc8319aca4 (patch) | |
| tree | 56dd395859bde0b73d1e9c899d3bddfbc010eadf /src/upgrade_pickup.odin | |
| parent | 30a49954e4cb434a1c47503c839feb20558a202b (diff) | |
idk i think i made things better
Diffstat (limited to 'src/upgrade_pickup.odin')
| -rw-r--r-- | src/upgrade_pickup.odin | 8 |
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) { |
