DEADSOFTWARE

Fix flipped logo
authorfred-boy <fredboy@protonmail.com>
Thu, 26 Sep 2019 17:35:27 +0000 (00:35 +0700)
committerfred-boy <fredboy@protonmail.com>
Sun, 29 Sep 2019 04:39:17 +0000 (11:39 +0700)
core/src/ru/deadsoftware/cavedroid/misc/Assets.java

index 109b0a1fa3830caadf0e21caaef18f97fb461da0..0b0b109face3f64befb701007e032eec19d94a90 100644 (file)
@@ -14,7 +14,7 @@ public class Assets {
 
     public static BitmapFont mcFont;
 
-    public static Texture gameLogo;
+    public static Sprite gameLogo;
 
     public static Texture menuBtnTex;
     public static TextureRegion[] menuBtn = new TextureRegion[3];
@@ -93,7 +93,8 @@ public class Assets {
 
         layout = new GlyphLayout();
 
-        gameLogo = new Texture(Gdx.files.internal("gamelogo.png"));
+        gameLogo = new Sprite(new Texture(Gdx.files.internal("gamelogo.png")));
+        gameLogo.flip(false, true);
 
         menuBtnTex = new Texture(Gdx.files.internal("buttons.png"));
         for (int i = 0; i < 3; i++) {