aboutsummaryrefslogtreecommitdiff
path: root/src/rope.odin
diff options
context:
space:
mode:
Diffstat (limited to 'src/rope.odin')
-rw-r--r--src/rope.odin3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rope.odin b/src/rope.odin
index f779c4e..f66a3bb 100644
--- a/src/rope.odin
+++ b/src/rope.odin
@@ -2,6 +2,7 @@ package demonchime
import "core:log"
import "core:math"
+import "core:math/linalg"
import rl "vendor:raylib"
@@ -37,7 +38,7 @@ draw_ropes :: proc() {
draw_texture(
img,
a.pos,
- offset = Vec2{f32(img.width) * 0.5, 0},
+ offset = linalg.round(Vec2{f32(img.width) * 0.5, 0}),
rotation = rotation,
)
}