Buffer_timer_before_game_start - UQdeco2800/2021-ext-studio-2 GitHub Wiki

Overview

The main part of this feature is mainly located in BufferStartCountDown.java,.java, BufferStartCountDownDisplay.java. Our aim is to create a buffer that counts down 5 seconds after pressing the start button so that players can prepare before entering the game. Previously, the game started right after pressing the start button, so it was a bit rushed for players. Also located in MainMenuDisplay.java, MainMenuActions.java, etc...

Logic section

Unlike sprint 1, the moment you press the start button, you go straight to the game by creating a trigger to go straight to the main game. "game.setScreen(GdxGame.ScreenType.MAIN_GAME)" in onStart() in MainMenuActions.java.

This time, when the player press the start button, the system will automatically trigger our buffer start the count down screen, the screen will show and count down the time we have set before, exactly 5 seconds, after 5 seconds the screen will print the words "start the game" and the player will officially enter the main game.

Display Section

We will display a countdown timer, after pressing the start button, the screen will show 5,4,3,2,1, and finally "start the game". This five-second period will give players more time to prepare and experience the game more friendly and efficient

Future implementations

In the following sprint, We can improve the "buffer start count down" screen by not only showing the countdown time before entering the game, but also showing the game operation guide, tips to play the game better and many more. Other interesting information fields. This will elevate the player's gaming experience