LIBGDX Project Creation and operation

Source: Internet
Author: User
Tags libgdx

Recently in the study Libgdx, read some related tutorials, but this knowledge structure is very chaotic, so want to take this blog to record and comb the knowledge, at the same time so that they can persist in learning.

This article mainly introduces the creation and operation of LIBGDX under the Widows project.

One, download Libgdx

Download is relatively simple, go to: LIBGDX official website, click on the top of the download, and then click the Download Setup app button can be downloaded as follows:

Second, the creation of the project

The above steps are downloaded to a jar package named Gdx-setup, which can help us to create the project easily, as follows:

1, double hit Open Gdx-setup.jar. If the double hit does not open, then use the shortcut key win+r, then enter cmd into the command line, into the directory where the Gdx-setup.jar is stored, enter

Java-jar Gdx-setup.jar

Such as:

2, if there is no accident, the interface window for creating the project will open. In this window to fill in the relevant information of the project, it is important to note that it is best not to use the default destination (Project storage directory) may lead to project creation failure, it is best to use the latest androidsdk, some of the lower SDK version is not supported. Then click the Advanced button to select the IDE for future edits, and then click the Generate button to start the creation. It is best not to disconnect the network halfway through the creation process, which is likely to cause the project to fail. If all goes well, a success prompt will appear, such as:

Third, import the project

Here I'm using the Eclipse development environment, which imports projects just like other normal projects: Choose File→import→general→existing Project into Workspace→select root Directory→browser Choose the →finish of the store path when creating the project, as follows:

Four, run the project

After importing the project, the core and project packages for each platform will appear in the Packageexplorer column (depending on the selection when the project was created), and then the project can be run under each platform.

1, the desktop project runs, right-click the Project Desktop Suffix folder →run as→java application→ Select Desktoplauncher, such as:

The 2,android project runs, and when you run an Android project, there is often no Android version found, and you need to configure the Android version, such as:

The following steps are as follows:

3, the project operation effect, such as:

LIBGDX Project Creation and operation

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.