Skip to content

Commit

Permalink
Merge pull request #10 from yohamta/fix-reverse-issue
Browse files Browse the repository at this point in the history
fix bug
  • Loading branch information
yohamta authored Nov 27, 2022
2 parents f288b5a + 84bc462 commit 7de885e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sprite.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,11 @@ func (spr *Sprite) Draw(screen *ebiten.Image, index int, opts *DrawOptions) {

if spr.flippedH {
sx = sx * -1
ox = 1 - ox
}
if spr.flippedV {
sy = sy * -1
oy = 1 - oy
}

if sx != 1 || sy != 1 {
Expand Down

0 comments on commit 7de885e

Please sign in to comment.