Skip to content

Commit

Permalink
fix(mazes): fix incorrect sprite rotation for maze tiles
Browse files Browse the repository at this point in the history
  • Loading branch information
BenjaminAmos committed Jul 12, 2022
1 parent 6d93ffa commit 888b882
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -188,9 +188,9 @@ public MazeTileObject build(SolGame game, MazeTile tile, Vector2 position, float
tex.flip(!tex.isFlipX(), !tex.isFlipY());
backgroundTexture.flip(!backgroundTexture.isFlipX(), !backgroundTexture.isFlipY());
}
RectSprite s = SpriteManager.createSprite(tex.name, MazeBuilder.TILE_SZ, 0, 0, new Vector2(), DrawableLevel.GROUND, 0, 0, SolColor.WHITE, false);
RectSprite s = SpriteManager.createStaticSprite(tex, MazeBuilder.TILE_SZ, 0, 0, new Vector2(), DrawableLevel.GROUND, 0, 0, SolColor.WHITE, false);
drawables.add(s);
RectSprite s2 = SpriteManager.createSprite(backgroundTexture.name, MazeBuilder.TILE_SZ, 0, 0, new Vector2(), DrawableLevel.DECO, 0, 0, SolColor.WHITE, false);
RectSprite s2 = SpriteManager.createStaticSprite(backgroundTexture, MazeBuilder.TILE_SZ, 0, 0, new Vector2(), DrawableLevel.DECO, 0, 0, SolColor.WHITE, false);
drawables.add(s2);
Body body = buildBody(game, angle, position, tile, flipped);
MazeTileObject res = new MazeTileObject(tile, drawables, body, position, angle, flipped);
Expand Down

0 comments on commit 888b882

Please sign in to comment.