Trolls speak louder than castles, or so I've heard
[troll.git] / src / main / java / com / codingame / game / View.java
index 0820190..370cad1 100644 (file)
@@ -345,6 +345,18 @@ class View {
                 .setSkewX((random.nextDouble() - 0.5) /4)
                 .setSkewY((random.nextDouble() - 0.5) /8);
         }
                 .setSkewX((random.nextDouble() - 0.5) /4)
                 .setSkewY((random.nextDouble() - 0.5) /8);
         }
+
+        // base png: 514×387
+        Sprite f7u12 = graphicEntityModule.createSprite()
+            .setImage("f7u12.png")
+            .setX(1920 / 2)
+            .setY(1080 / 2)
+            .setAnchorX(0.5)
+            .setAnchorY(0.5)
+            .setBaseWidth(514*1080/387)
+            .setBaseHeight(1080)
+            .setZIndex(200);
+        pantsModule.displayOnToggleState(f7u12, "troll", true);
     }
 
     enum TrollRace {
     }
 
     enum TrollRace {
@@ -442,6 +454,7 @@ class View {
         moveTroll();
 
         trollMessage = graphicEntityModule.createText()
         moveTroll();
 
         trollMessage = graphicEntityModule.createText()
+            .setZIndex(1)
             .setX(1902/2)
             .setY(680)
             .setAnchorX(0.5)
             .setX(1902/2)
             .setY(680)
             .setAnchorX(0.5)