1. Micha Kops
  2. jfx-ball-game

Commits

Micha Kops  committed d372a76

Effect definitions moved to external stylesheet.

  • Participants
  • Parent commits d4ac647
  • Branches master

Comments (0)

Files changed (1)

File src/main/java/com/hascode/jfx/game/BallGameController.java

View file
 
 	@Override
 	public void initialize(final URL url, final ResourceBundle bundle) {
-		// applyDropShadowEffects();
 		bindPaddleMouseEvents();
 		bindStartButtonEvents();
 		bindQuitButtonEvents();
 		});
 	}
 
-	private void applyDropShadowEffects() {
-		ball.setEffect(dropshadowEffect);
-		paddle.setEffect(dropshadowEffect);
-		gameOverText.setEffect(dropshadowEffect);
-		winnerText.setEffect(dropshadowEffect);
-	}
-
 	private void checkWin() {
 		if (0 == model.getBoxesLeft().get()) {
 			model.getGameWon().set(true);