A Tower Defense Android game with a Hex grid and the ability to rotate towers that have different attack areas. A* and AIs that mimic ants in nature are used.
Method 1: IntelliJ
- Download the free community edition of IntelliJ from http://www.jetbrains.com/idea/download/index.html
- Download the Android SDK for your platform from http://developer.android.com/sdk/index.html
- Run the command "android" (Linux) or "android.exe" (Windows) from the "tools" subdirectory -This will allow you to download an emulator and the needed SDK class files
- Run "android avd" or the equivalent command for Windows and click "New" to make a new virtual device
- Unpack the IntelliJ tar file and open IntelliJ (run "idea-IC-xxx/bin/idea.sh" in linux)
- Go to File-->Open Project and open the HexTD IntelliJ project included
- Right-click on the HexTD module in the project browser and go to "Open Module Settings"
- Click on the SDKs tab -Click the + sign to add your JDK, point it to the base directory for your JDK files -Click the + sign to add your Android SDK, point it to the base directory for the Android SDK you downloaded -(If these already exist then edit them rather than creating new ones)
- Go to Run-->Edit Configurations -Click the "+" and create a new Android run configuration -Check "Launch Default Activity" and under Emulator choose your android virtual device, which should show up if you created it in step 4)
- Select your run config and press the play button to run it!
Method 2: Linux command-line
- Download the Android SDK for your platform from http://developer.android.com/sdk/index.html
- Add the "xxx/android-sdk/tools" and "xxx/android-sdk/platform-tools" directories to your PATH variable
- Run the command "android" -This will allow you to download an emulator and the needed SDK class files
- Run "android avd" or the equivalent command for Windows and click "New" to make a new virtual device
- Make sure you have the Apache ant build tool, or run "sudo apt-get install ant"
- Make sure JAVA_HOME points to the location of your JDK