Skip to content

Commit

Permalink
fix: Unexpected behavior of RotationStyle
Browse files Browse the repository at this point in the history
heading: [0, 180] is considered facing right
heading: (-180, 0) is considered facing left
  • Loading branch information
JiepengTan committed Jul 11, 2024
1 parent f57e13a commit 885578c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spgdi.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ func (p *spriteDrawInfo) updateMatrix() {
if dirDeg > 180 {
dirDeg -= 360
}
if dirDeg < -45 || dirDeg > 135 {
if dirDeg < 0 {
geo.Scale(-1, 1)
}
}
Expand Down

0 comments on commit 885578c

Please sign in to comment.