XTank Refresh

Project Specification

  • Tools/Languages: Java, SWT (Source), Eclipse IDE
  • Environment: Class Project, Group of 2
  • Timeline: 3 weeks
  • GitHub: Repository

Description

For a class project in my object-oriented programming class, my partner and I created a local multiplayer game where players battle with tanks. You can select from 4 tank types with varying speeds and shields, along with 4 different maps. We have used SWT (the Standard Widget Toolkit) to provide graphics for this program. This program is the first time I have been introduced to the concept of threads and have utilized network sockets to create connections from one computer to another.

My Contribution

I designed the user interface so that players can select between hosting and joining a game without having to relaunch the application to switch between these two actions. I also created the map classes, the controllers, and the threads to ensure that the game can be played in real time. I also helped my partner with programming the game logic as needed.

Instructions to use:

1) Click “Host Game” to host a new game. Click “Join Game” to join an existing game.

2) As a host, pick the game’s map, choose the tank’s lives, and update the port number if needed. Click “Host” to host the game.

3) As a player, select your tank, set the IP address, and set the port number if needed. Click “Next” to join the game.

4) Enjoy the game! WASD or Arrow keys to move. Space or J to shoot.

5) Click “Quit” once the game is finished.

6) Click “Update Winner” to get the winning player.

Address

Surprise, AZ, United States of America