diff options
Diffstat (limited to 'src/rope.odin')
| -rw-r--r-- | src/rope.odin | 3 |
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, ) } |
