X-Git-Url: https://troll.desast.re/troll.git/blobdiff_plain/6ee812987dd1b5e42e23ae463838c4c15a2c3e86..a78210b2e4295eaf8dee8215d4ffe5e062b4efb3:/src/main/java/com/codingame/game/View.java diff --git a/src/main/java/com/codingame/game/View.java b/src/main/java/com/codingame/game/View.java index 0820190..370cad1 100644 --- a/src/main/java/com/codingame/game/View.java +++ b/src/main/java/com/codingame/game/View.java @@ -345,6 +345,18 @@ class View { .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 { @@ -442,6 +454,7 @@ class View { moveTroll(); trollMessage = graphicEntityModule.createText() + .setZIndex(1) .setX(1902/2) .setY(680) .setAnchorX(0.5)