This game is designed to be played multiplayer. To get started, you'll need to run the program on multiple devices—one will act as the server host, and the other two will be the players.
- Choose a device to be your server host.
- The host device will need to run the server file to start hosting the game.
- Players need to set the
SERVER_ADDRESS
variable in theClient
class.- The default address is
127.0.0.1
, which is the local host address. Use this if you are running the game entirely on the same laptop. - If the server is on a different device, replace
127.0.0.1
with the IPv4 address of the host device.- Example:
private static final String SERVER_ADDRESS = "HOSTS_IPV4";
- If you're unsure how to find the host's IPv4 address, you can search for instructions on how to find it for your operating system.
- Example:
- The default address is
- Run the server file on the host device.
- Once the server is running, the two players should run the
main.java
file on their devices.- This will open the game, and both players will see the title screen.
-
On the title screen, both players should press "Start" to begin the game.
- The first player to press "Start" will be Player 1, and the second player to press "Start" will be Player 2.
- Pressing "Start" will connect each player to the host server.
-
After both players are connected, the game will begin, and the players will see their respective game pieces.
- Players have 4 buttons at the bottom of the screen, each representing a character from Alice in Wonderland.
- Player 1 controls good characters like Alice.
- Player 2 controls evil characters like the Red Queen.
- Pressing a button will spawn the corresponding character in front of your tower.
-
The characters will automatically move towards the opponent's tower and attempt to deal damage upon reaching it.
- If a character encounters an opposing character during its journey, they will engage in a fight.
-
The goal of the game is to reduce your opponent's tower health to 0.
Each player can summon characters by pressing the buttons. The available summons are:
-
Scout: A light, fast character.
-
Ranged: A character that can attack from a distance.
-
Warrior: A balanced character with both offense and defense.
-
Tank: A heavy character with high defense but slower movement.
-
Each button has a cooldown based on the strength of the summon.
-
Feel free to inspect the underlying stats for each character in the character class file.
Enjoy the game, and may the best player win!