Android and Libgdx Getting started instance

Source: Internet
Author: User

This article explains how to implement the respective Hello World processes for Android and LIBGDX.

1. The Android version of Hello World

Click Eclipse Shortcut, select New Android application, create project, fill in the appropriate name.

2. Then all the way next, choose the default is OK.

3. Create the program file model.

3. Modify the interface display string.

4. Select the project and click Run as-android application.

If you do not have an Android phone, you can create an emulator.

Select Window-android Virtual device Manager and click on the Device tab to select the Nexus One type, select the API and other parameters, and then create it.

Operation Result:

The Android version of the starter program is basically like this, this is the primer, for the back LIBGDX program lay the foundation.

2. LIBGDX Version Entry Program

Unzip the LIBGDX package, find the Gdx-setup-ui.jar and run it, the following screen appears.

Click Create.

Fill in the relevant options, and then open the build page.

Generate the project.

Add the project to eclipse.

Select the File-import-general option and select existing Projects into Workspace.

Click Finish.

There are three projects, core engineering, desktop engineering, Android engineering. Android project will have errors, right click Select Properties, specify its version.

Then click on the desktop version, run as-android application, select Main, run the result

Done. This is the beginning of the game, will be slowly in depth.

Write a bunch of random, the level is limited, also please understand!!!!!!!!!!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.