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)