X-Git-Url: https://troll.desast.re/troll.git/blobdiff_plain/b41b9823fbe2eed146db478fd5a1353bb558215c..d20fd565ca9fd9b1476469c29a9a3104163cd58c:/src/main/java/com/codingame/game/View.java?ds=inline diff --git a/src/main/java/com/codingame/game/View.java b/src/main/java/com/codingame/game/View.java index b8d42c4..21489ff 100644 --- a/src/main/java/com/codingame/game/View.java +++ b/src/main/java/com/codingame/game/View.java @@ -165,11 +165,13 @@ class View { graphicEntityModule.commitEntityState(0, message); } - void destroy() { + void markLoser() { graphicEntityModule.commitEntityState(0.5, avatar); int dir = random.nextInt(2) == 1 ? 1 : -1; avatar.setRotation(dir * 170 * Math.PI / 180, Curve.ELASTIC); + } + void destroy() { graphicEntityModule.commitEntityState(0.5, castle); castle.setX(castle.getX(), Curve.ELASTIC); castle.setScaleY(-0.2, Curve.EASE_IN);