Skip to content

oopsdan/2D-Tanky

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

2D-Tanky

This repository contains a simple two-player tank game implemented in Java using the Swing library. Players control their tanks using keyboard input, attempting to shoot each other while avoiding obstacles on the map.

Table of Contents

Features

  • Tank movement using keyboard input
  • Shooting mechanics
  • Obstacles on the map for added challenge
  • Customizable player names and tank colors

How to Play

Option 1: Run from Source

  1. Clone the repository to your local machine.
  2. Open the project in your preferred Java IDE.
  3. Locate the Main class.
  4. Run the Main class within your IDE.
  5. Enter player names and customize tank colors in the start menu.
  6. Use keyboard controls to move and shoot.
  7. Avoid obstacles and try to shoot the opponent's tank.

Option 2: Use the JAR File

  1. Download the spusti.jar file.
  2. Double-click on the spusti.jar file to run the game.
  3. Enter player names and customize tank colors in the start menu.
  4. Use keyboard controls to move and shoot.
  5. Avoid obstacles and try to shoot the opponent's tank.

Note: Ensure you have Java installed on your machine. If you encounter issues, make sure to check your Java installation or run the JAR file from the terminal/command prompt.

Contributing

This program was created as a learning exercise and is not intended for production use. However, if you would like to contribute to the project, feel free to submit a pull request.

License

This project is licensed under the MIT License. See the LICENSE file for more information.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages