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.odin5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/upgrade_pickup.odin b/src/upgrade_pickup.odin
index 4cc5240..1b066d1 100644
--- a/src/upgrade_pickup.odin
+++ b/src/upgrade_pickup.odin
@@ -3,6 +3,7 @@ package demonchime
import "core:math/linalg"
import "core:log"
+import "fw"
import "phys"
Upgrade_Type :: enum {
@@ -34,10 +35,10 @@ draw_upgrade :: proc() {
tex := get_image(upgrade.image_id)
- draw_texture(
+ fw.draw_tex(
tex,
upgrade.pos,
- offset = linalg.round(Vec2{f32(tex.width), f32(tex.height)} * 0.5)
+ offset = linalg.round(Vec2{f32(tex.size.x), f32(tex.size.y)} * 0.5)
)
}