auts: minor
This commit is contained in:
parent
96560a64e1
commit
cef41ae0d0
|
@ -56,8 +56,10 @@ fn (mut s Sprite) draw() {
|
|||
|
||||
px := s.x - s.shift_x
|
||||
py := s.y - s.shift_y
|
||||
|
||||
sx, sy := world_to_screen_pos(px, py)
|
||||
|
||||
s.tex.draw_pos(px, py)
|
||||
s.tex.draw_pos(sx, sy)
|
||||
}
|
||||
|
||||
fn (mut s Sprite) update(dt f32) {
|
||||
|
|
Loading…
Reference in a new issue