Skip to content

Ayushkiller/Towerdefense

Repository files navigation

TowerDefense

Note: This project is no longer actively maintained. If you need help or updates, feel free to ping me.

Project Description

This is a Tower Defense plugin for Mindustry, designed to enhance gameplay with strategic elements. Players can engage in defensive warfare against advancing enemies, manage resources, and invest in superior weaponry. Key features include:

  • Unit Management: Purchase and deploy various units to defend against waves of enemies.
  • Currency System: Convert surplus resources into in-game cash, displayed at the top center of the screen.
  • Power-Ups and Superpowers: Acquire enhancements like force projectors to slow enemies or regeneration projectors to heal defenses.
  • Menus and Commands: Access shops and information via in-game menus (e.g., /menu command) and admin commands like /death for adding cash.
  • Game Mechanics: Includes wave extension, event loading, pathfinding for units, and special deployments for reinforcements.
  • Multiplayer Support: Intended for Mindustry servers, with features tailored for server-owned gameplay.

The plugin is strictly owned by the DontVin Mindustry Server and is version 7.0.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

You need to have Java and Gradle installed on your machine. You can check if they're installed by using the following commands:

$ java -version
$ gradle -version

Installing

To get a copy of this project, clone the repository to your local machine:

$ git clone https://github.com/Thisiscooliguess/Towerdefense.git

Navigate to the project directory:

$ cd Towerdefense

Build the project using Gradle:

$ ./gradle build

Testing

To run the automated tests for this system, use the following command:

$ ./gradle test

You can also run the plugin in a local server:

$ ./gradle runMindustryServer

Troubleshooting

Gradle "Unsupported class file major version 65" Error

If you see an error like:

BUG! exception in phase 'semantic analysis' in source unit '_BuildScript_' Unsupported class file major version 65

This means your Java version is too new for your Gradle version. Gradle 7.6 does not support Java 21.

How to fix:

  • Use Java 17 or lower (recommended for Gradle 7.x).
  • Or, upgrade Gradle to version 8.4 or newer to use Java 21.

You can check your Java version with:

java -version

And your Gradle version with:

gradle -version

To switch Java versions, use a tool like SDKMAN or manually install Java 17.

For more help, see Gradle's compatibility matrix.

Authors

Ayush Killer - Developer and current head - AyushKiller
Phinner - Code quality - Phinner

License

This project is licensed under the MIT License - see the LICENSE.md file for details

About

ya

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages