Controls Screen - UQcsse3200/2023-studio-2 GitHub Wiki
Controls Screen
The Controls Screen in the game provides an overview of control instructions, allowing players to familiarize themselves with the game's controls before playing. This page describes how the Controls Screen looks and lists all the game controls. Additionally, it briefly explains the relevant classes used in creating this screen.
Table of Contents
Classes Used in Controls Screen
Controls Screen UI
The Controls Screen has a clean and informative user interface:
-
Control Instructions: The center of the screen displays instructions for the game controls. These instructions help players understand how to navigate and interact within the game.
-
Exit Button: Located at the bottom of the screen, the "Exit" button allows players to return to the settings menu when clicked.
UML Diagram
Game Controls
Here is a list of all the game controls:
- Move Forward: Press the W key to move your character forward.
- Move Backward: Press the S key to move your character backward.
- Move Left: Press the A key to move your character left.
- Move Right: Press the D key to move your character right.
Classes Used in Controls Screen
ControlsScreen
Class
The ControlsScreen
class is responsible for managing the Controls Screen. It handles asset loading, UI creation, and rendering. The class structure includes methods for rendering and disposing of resources.
ControlsScreenDisplay
Class
The ControlsScreenDisplay
class is a UI component responsible for displaying the user interface of the Controls Screen. It uses a Table
layout to organize and present control instructions to players.
ControlsScreenActions
Class
The ControlsScreenActions
class defines actions and event listeners for the Controls Screen. It registers event listeners for key input events (W, A, S, D) and the "exit" event triggered by the exit button. These event listeners allow the game to respond to player input.
Conclusion
The Controls Screen provides essential information about the game's controls, ensuring that players are well-prepared to dive into the gameplay. The user-friendly interface and clear instructions make it easy for players to understand and remember the controls.
Dependencies
- LibGDX: The core framework for developing cross-platform games.
Contributors
-
Aniket Gupta @aniketgupta17
-
Jival Kapoor @JivalX
-
Yash Mittal @YashMitttal