stone.setAlpha(0, Curve.EASE_IN);
graphicEntityModule.commitEntityState(0.5, stone);
stone.setAlpha(0, Curve.EASE_IN);
graphicEntityModule.commitEntityState(0.5, stone);
stoneReminder.setText(stonesString);
graphicEntityModule.commitEntityState(0.25, stoneReminder);
stoneReminder.setAlpha(1);
stoneReminder.setText(stonesString);
graphicEntityModule.commitEntityState(0.25, stoneReminder);
stoneReminder.setAlpha(1);
- avatar.setRotation(170*Math.PI/180, Curve.ELASTIC);
+ graphicEntityModule.commitEntityState(0.5, avatar);
+ int dir = random.nextInt(2) == 1 ? 1 : -1;
+ avatar.setRotation(dir * 170 * Math.PI / 180, Curve.ELASTIC);
graphicEntityModule.commitEntityState(0.5, castle);
castle.setX(castle.getX(), Curve.ELASTIC);
castle.setScaleY(-0.2, Curve.EASE_IN);
}
graphicEntityModule.commitEntityState(0.5, castle);
castle.setX(castle.getX(), Curve.ELASTIC);
castle.setScaleY(-0.2, Curve.EASE_IN);
}
private void drawBackground() {
graphicEntityModule.createSprite()
.setImage("background.png")
private void drawBackground() {
graphicEntityModule.createSprite()
.setImage("background.png")