askIT

LibGDX

LibGDX is a desktop, Android, BlackBerry, iOS, HTML5 game development framework created with Java. By downloading LibGDX you can create code in Android Studio and publish it for iPhone.

logo_libgdx.png

icon_desktop_48x48.png icon_android_48x48.png icon_blackberry_48x48.png icon_ios_48x48.png icon_html5_48x48.png icon_java_48x48.png

libGDX allows the developer to write, test, and debug their application on their own desktop PC and use the same code on Android. It abstracts away the differences between a common Windows/Linux application and an Android application. The usual development cycle consists of staying on the desktop PC as much as possible while periodically verifying that the project still works on Android.

Its main goal is to provide total compatibility between desktop and mobile devices, the main difference being speed and processing power. Download LibGDX at libgdx.com.

Installation instructions

Create a folder in your user directory named Android. Example:
"C:\Users\bruker\Android".

Download gdx-setup.jar from libgdx.com into your Android folder..

Generate files

Open gdx-setup.jar with Java.

01_libgfx_project_generator.jpg

Click on Advanced. Make sure IDEA is checked.

02_libgfx_project_generator_advanced.jpg

Click Generate.

02_libgfx_project_generator_generate.jpg

Import files to Android Stuido

Open Android Studio.
Select "File -> Close".
The screen below should appear. Click Import project.

04_android_studio_import_project.jpg

Setup desktop viewer

Go to Android Studio. Click Open Configurations.

05_android_edit_configurations.jpg

Click the plus, and select Application.

06_run_debug_configurations_plus_application.jpg

The next window will give you configuration for your desktop run/debug.

07_run_debug_configurations_desktop.jpg

Run the application.

run_desktop.jpg

You should now see the Bad Logic Game logo.

08_desktop_bad_logic_games.jpg

Add comment

avatar_blank_60.png

Comment:

Name:

Email:

Comments

No comments yet. You can be the first one to comment. Just write your comment in the form and click on the submit button.