graphicEntityModule.commitEntityState(0, message);
}
- void destroy() {
+ void markLoser() {
graphicEntityModule.commitEntityState(0.5, avatar);
- avatar.setRotation(170*Math.PI/180, Curve.ELASTIC);
+ 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);