From c6444a57cd4f106c6b64dc7c02ef8cc594067d8e Mon Sep 17 00:00:00 2001 From: JBM Date: Sun, 7 Jun 2020 14:43:05 +0200 Subject: [PATCH] Endgame status must spring out of opposite corner, not always lower right --- src/main/java/com/codingame/game/View.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.30.2