LibGDX game engine-1-Project Creation (Hello, LibGDX)

Source: Internet
Author: User
Tags libgdx

LibGDX game engine-1-Project Creation

This series of blog posts are from Sina's blog-xiaotudou. I have added my own understanding and modifications to this article!


Official Website: libgdx.badlogicgames.com


1. Download libgdx Latest Version 0.9.9 package, unzip, open libgdx-0.9.9 \ gdx-setup-ui.jar


2. Click the Create button to go to the project editing page,


Left
Enter the project name,
Package name
Platform project


Intermediate
Set the libgdx package


Right side
Click the button starting with "open" in the lower right corner.


Go to the launch page and click the launch button to wait for all done!


4. Open Eclipse and import the Exist project. There are N projects in total.


5. (1) After the Android project is introduced, an error is reported.


Error cause:
Android native package not added
Solution:
Is to open the project. properties file in the project, and then modify target = android-15 to download
Android version. For example, if the downloaded package is android 2.3.3, change it to target = android-10.


(2) An error is reported in the AndroidManifest. xml file. The main cause is the screen conversion.
Android: configChanges = "keyboard | keyboardHidden | orientation | screenSize"
Modify android: configChanges = "keyboardHidden | orientation", which is a basic problem of screen conversion,
I will not go into details here. In this way, the XML file error will disappear.


6. The types of several projects are explained here.


The first is the main code project-the code is written here, and the second project is the android project, which does not require any code.


To debug the android project, run debugging here (right-click run as), and desktop is the desktop debugging project.


Because AVD is too slow to start and desktop projects are faster to start, desktop is generally used to quickly debug projects (this is super convenient and I usually use it ).


Reprinted please indicate the source: blog.csdn.net/qsuron Xiaoshu blog (qsuron)

Related Article

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.