Skip to content

Commit

Permalink
fixed rotation bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Carter907 committed Nov 17, 2022
1 parent 99547ff commit f92d69c
Show file tree
Hide file tree
Showing 13 changed files with 1 addition and 0 deletions.
Binary file modified .gradle/7.5.1/executionHistory/executionHistory.bin
Binary file not shown.
Binary file modified .gradle/7.5.1/executionHistory/executionHistory.lock
Binary file not shown.
Binary file modified .gradle/7.5.1/fileHashes/fileHashes.bin
Binary file not shown.
Binary file modified .gradle/7.5.1/fileHashes/fileHashes.lock
Binary file not shown.
Binary file modified .gradle/7.5.1/fileHashes/resourceHashesCache.bin
Binary file not shown.
Binary file modified .gradle/buildOutputCleanup/buildOutputCleanup.lock
Binary file not shown.
Binary file modified .gradle/file-system.probe
Binary file not shown.
Binary file modified core/build/classes/java/main/com/mygdx/game/actors/Ship$1.class
Binary file not shown.
Binary file modified core/build/classes/java/main/com/mygdx/game/actors/Ship.class
Binary file not shown.
Binary file modified core/build/libs/core-1.0.jar
Binary file not shown.
Binary file modified core/build/tmp/compileJava/previous-compilation-data.bin
Binary file not shown.
1 change: 1 addition & 0 deletions core/src/com/mygdx/game/actors/Ship.java
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ public void draw(Batch batch, float parentAlpha) {
}
private void findFlip() {
if (this instanceof Player)
System.out.println(this.getRotation());
if ((getRotation() > 90 && getRotation() < 270) && !sprite.isFlipY()) {
sprite.flip(false,true);
} else if (!(getRotation() > 90 && getRotation() < 270) && sprite.isFlipY())
Expand Down
Binary file modified desktop/build/libs/desktop-1.0-all.jar
Binary file not shown.

0 comments on commit f92d69c

Please sign in to comment.