* Add files via upload * Added option to set TextField length for showTextInput() the character length default was 12, and unchangeable afaik, so I added an option to change the character length, as well as suggesting a new character length for save file's name. (I actually have no idea if this PR can be delivered correctly, wish me luck.) * Rename UI.java to core\src\io\anuke\mindustry\ui/UI.java * Rename SaveDialog.java to core\src\io\anuke\mindustry\ui\dialogs\SaveDialog.java * Delete UI.java * Added option to set TextField length for showTextInput() the character length default was 12, and unchangeable afaik, so I added an option to change the character length, as well as suggesting a new character length for save file's name. (I actually have no idea if this PR can be delivered correctly, wish me luck.) * Delete UI.java * Delete SaveDialog.java * Add files via upload * Add files via upload * Delete UI.java * Delete SaveDialog.java * Delete core\src\io\anuke\mindustry\ui\dialogs\SaveDialog.java * Delete Mindustry-64.zip
A sandbox tower defense game written in Java.
Building
Bleeding-edge live builds are generated automatically for every commit. You can see them here.
If you'd rather compile on your own, follow these instructions.
First, make sure you have Java 8 and JDK 8 installed. Open a terminal in the root directory, cd to the Mindustry folder and run the following commands:
Windows
Running: gradlew desktop:run
Building: gradlew desktop:dist
Linux/Mac OS
Running: ./gradlew desktop:run
Building: ./gradlew desktop:dist
Server
Server builds are bundled with each released build (in Releases). If you'd rather compile on your own, replace 'desktop' with 'server', e.g. gradlew server:dist.
Troubleshooting
If the terminal returns Permission denied or Command not found on Mac/Linux, run chmod +x ./gradlew before running ./gradlew. This is a one-time procedure.
Gradle may take up to several minutes to download files. Be patient.
After building, the output .JAR file should be in /desktop/build/libs/desktop-release.jar for desktop builds, and in /server/build/libs/server-release.jar for server builds.
