-
Notifications
You must be signed in to change notification settings - Fork 40
Eclipse
Thomas Cashman edited this page Oct 15, 2016
·
3 revisions
Once you have generated your mini2Dx project you're ready to import it into Eclipse.
You need to install the following for mini2Dx development.
- Java Development Kit 7
- Android SDK (If developing for Android)
- Eclipse IDE for Java Developers
- Eclipse Development Tools for Android
- Eclipse Gradle Tools (See Installing Gradle Tooling from update site)
If developing for iOS, you'll also need the following.
- Mac OS X (iOS Development is only possible on Mac)
- The latest XCode installed (available for free on the Mac App Store)
- RoboVM for Eclipse
- Go to
File -> Import -> Gradle -> Gradle Project - Click Browse and select your project's folder
- Click Build Model. After a while, you'll see a root project and subprojects for each platform your chose.
- Select all projects and click Finish.
Your Eclipse workspace folder must not be the same as your project's root folder (see this issue).
If you run into problems with missing artifacts, you need to delete your .m2 folder in the appropriate location:
- Windows: C:\Users\username.m2
- Mac OS X: /Users/username/.m2
- Linux: /home/username/.m2
If you encounter a Unsupported major.minor version error, you have an incorrect version of Java installed. Please ensure you have Java 7 installed.
Desktop
- Right-click the desktop project.
- Select
Run as -> Java Application - Select the Desktop main class (DesktopLauncher).
Android
- Make sure you have a device connected and that it shows up in the DDMS (see Android Developer Guide).
- Right-click the android project.
- Select
Run as -> Android Application.
iOS
- Right-click the iOS project.
- To run on a connected device, select
Run as -> iOS Device App. Make sure you have provisioned your device before you run it. - To run on the iOS simulator, select
Run as -> iOS Simulator App.
It's best to release your project from the command line.
Getting Started
Graphics
Gameplay
Data
- Asset Management
- Saving and loading player data
- Converting objects to/from JSON
- Converting objects to/from XML
User Interfaces / HUDs
Structuring your code
Releasing your game