Skip to content
Snippets Groups Projects
Commit f3c2e0d5 authored by Tran Peter's avatar Tran Peter
Browse files

fix(easter egg): fix counter not updating #20

parent 47bae667
No related branches found
No related tags found
6 merge requests!74V1,!73Initial commit,!71Merge DataBase into Development,!54Update: coreMaps.json (added new maps),!48Development,!47Merge ui into development
......@@ -15,7 +15,6 @@ import de.hdm_stuttgart.battlearena.Model.Inputs.InputHandler;
import de.hdm_stuttgart.battlearena.Model.Map.Biom;
import de.hdm_stuttgart.battlearena.Model.Map.TileManager;
import de.hdm_stuttgart.battlearena.Model.Sound.SoundEffects;
import javafx.animation.AnimationTimer;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
......@@ -25,9 +24,7 @@ import javafx.scene.canvas.Canvas;
import javafx.scene.canvas.GraphicsContext;
import javafx.scene.control.Label;
import javafx.scene.effect.Effect;
import javafx.scene.effect.GaussianBlur;
import javafx.scene.effect.Lighting;
import javafx.scene.layout.*;
import javafx.scene.shape.Rectangle;
import javafx.scene.text.Font;
......@@ -35,7 +32,6 @@ import javafx.stage.Screen;
import org.apache.logging.log4j.Logger;
import org.apache.logging.log4j.LogManager;
import java.io.IOException;
import java.net.URL;
import java.util.*;
import java.util.stream.Collectors;
......
......@@ -54,7 +54,8 @@ public class LoadingScreenController implements Initializable {
"Apparently Jonas is above the law.",
"Jonas has lost his Game Dev Role in Discord.",
"Maxe is a light mode user. Poor soul...",
"Did you know, that Elias almost destroyed our GitLab Repo?"
"Did you know, that Elias almost destroyed our GitLab Repo?",
"This Game is sponsored by ChatGPT™"
};
private final List<String> shuffledTips = Arrays.asList(loadingTips);
......
......@@ -67,6 +67,7 @@ public class MenuBorderPaneController implements Initializable {
private void easterEgg() {
btnRight.setOnMouseClicked(mouseEvent -> {
musicCounter++;
switch (musicCounter) {
case 5:
runtimeInfo.setGameState(GameState.MEMES);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment