Skip to content

TimWJT/tanks-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tanks Game (Java)

A 2D tank battle game built in Java using the Processing graphics library.

Gameplay

  • Control your tank and battle against other players.
  • Eliminate other players to gain points.
  • Winner is declared at game end, where the player with the most amount of points wins.

Controls

  • ← / → — Move tank left/right (uses fuel).

  • ↑ / ↓ — Aim barrel up/down

  • W / S — Increase / decrease shot power

  • Space — Fire

  • R — If the game has ended: restart from level 0. If the game is ongoing and your health < 100: use Repair Kit (heals).

  • F — Get additional Fuel.

  • P — Get additional Parachutes.

  • X — Use Large Projectile powerup

  • N — Next level

  • M — Previous level

  • L — Refresh current stage

  • O — Restart game


Tech Stack

  • Language: Java 8
  • Build Tool: Gradle
  • Graphics: Processing (org.processing:core:3.3.7)
  • Testing: JUnit 5

How to Run

Prerequisites

  • Java 8 (JDK 1.8)
  • Gradle Wrapper (included — no need to install Gradle globally)

Steps

# Clone the repository
git clone https://github.com/TimWJT/tanks-game.git

# Run the game
.\gradlew.bat :app:run   # Windows Powershell or Command Prompt
./gradlew :app:run       # Mac/Linux (unconfirmed)

About

2D Tanks Game made in Java with the Processing graphics library.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages