From: JBM Date: Sun, 7 Jun 2020 12:43:05 +0000 (+0200) Subject: Endgame status must spring out of opposite corner, not always lower right X-Git-Url: https://troll.desast.re/troll.git/commitdiff_plain/c6444a57cd4f106c6b64dc7c02ef8cc594067d8e?ds=inline;hp=d8cab95e5af1dcf21071cae9e66766df701bc301 Endgame status must spring out of opposite corner, not always lower right --- diff --git a/src/main/java/com/codingame/game/View.java b/src/main/java/com/codingame/game/View.java index cfde0eb..9d5cd80 100644 --- a/src/main/java/com/codingame/game/View.java +++ b/src/main/java/com/codingame/game/View.java @@ -595,7 +595,7 @@ class View { void animateLoss(int x, int y, int size, String message) { int startX; if (x < 1920/2) { startX = 1920; } - else if (x > 1920/2) { startX = 1920; } // XXX + else if (x > 1920/2) { startX = 0; } else { startX = 1920 * random.nextInt(2); } Text msg = graphicEntityModule.createText(message)