Skip to content

FPErfvv/Tank-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 

Repository files navigation

Tank-Game

This respository contains the code for Tank Game. The task of the player is to save the world from climate change. Because the cattle industry is a substantial contributor of greenhouse gas emissions, the player will be tasked with killing all the cows on the map. To make it more challenging, the cows will be equiped with various weaponry. Over time, the weapons will become more advanced and the cows will become more difficult to kill.

The game is still very much in development. Tank Game is created using the Java Swing graphics library instead of a prebuilt game engine. The basic game mechanics (collisions, basic physics, procedural terrain generation, etc) are being created before higher level game elements can be implemented. Seen below is a snapshot of the game at this point.

TankGamePic

Multiplayer

Please note that only fragments of multiplayer functionality has been implemented and has known bugs.

How to start a multiplayer game:

In the src/app/net, you will find GameServer.java and GameClient.java Both of these Java source files have a main method.

First run the GameServer

By default, the multiplayer feature uses the computers loopback interface for testing purposes. If you want to join a server running on another computer, go to the beginning of the GameClient.java constructor and assign the member variable 'serverIPAddress' to the IP address of the computer that is hosting the server in the form of InetAddress.getByAddress(addr) where addr is a byte array of for elements { a, b, c, d } representing an IPv4 address in the form a.b.c.d

To join the server, run GameClient.java

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages