This project is a graphical game application developed in Java, featuring a main window with game statistics and a game board. It involves player navigation, ranger movements, and collision detection, creating an interactive and dynamic gaming experience.
- MainWindow: A
JFrame-based class that initiates the window dimensions and includes exit functionality. It consists of two main parts: the Game Statistics Label and the Game Board, both implemented usingJPanel. - Board: Extends
JPanelto create the game board. It transforms the model data into a user interface. - Game: Handles game data management, including reading from files and iterating through levels.
- GameLevel: The core class for game functionality, managing rangers, players, and game logic.
- Player and ranger movements with collision detection.
- Dynamic game statistics updates.
- Level progression and data handling.
- Java Runtime Environment (JRE) and Java Development Kit (JDK)
- Basic understanding of Java and Swing framework
-
Clone the repository to your local machine.
-
Compile the Java files in your preferred IDE or using the Java compiler.
-
Run the
MainWindowclass to start the game.
- Use
W,A,S,Dor arrow keys to move the player on the board. - Observe the game statistics for player progress and game state.
- Interact with the game menu for additional options.