Tanks is a game written in Java inspired by a minigame of the same name on the Wii game "Wii Play". There are 18 unique enemies you can fight, but you can add more of your own too. The game works in Windows, Mac or Linux.
Controls:
Use the arrow keys or WASD to move
Left click or click space to shoot
Right click or press enter to lay a mine
Press escape to pause the game
Level Editor controls:
Left click to place
Right click on an object to destroy it
Right click on nothing to rotate the object you are placing
Press up and down arrow keys or scroll to cycle enemy tanks
Press left and right arrow keys to cycle enemy tank, obstacle, player tank
The following are three screenshots of the game in action. The colored squares are tanks belonging to different teams, firing at each other. The brown squares are obstacles. The user controls the cyan tank using the mouse or keyboard.
To use the game you need to install Java. For this purpose you may need administrator privileges to install software on your machine. You can install java from java.com.
You can download the jar files for current and past versions of Tanks (Choose this if you want to play the game but not modify its code).
This comes as a zip, extract the zip file and you will have the jar file and a run command for mac.
To run the jar file on Windows you can double-click on it. For Mac, you need to run the jar file with the
argument -XstartOnFirstThread, or by using the file whose name starts with RunTanks.
To develop the game we suggest using Eclipse or IntelliJ. Eclipse can be installed from
eclipse.org. IntelliJ can be installed from
jetbrains.com
To access the source code you also need to install git.
You will need to add the following libraries to the build path of the project:
PNGDecoder by Matthias Mann in TWL
All the jars and natives of the following LWJGL libraries:
LWJGL (core)
OpenGL
OpenAL
GLFW
Assimp
STB
Commons IO
Matei Budiu (Aehmttw)
Karan Gurazada
Hallowizer