官术网_书友最值得收藏!

LibGDX project setup

At the time of writing this book, LibGDX was in version 1.6.4 and we will use that version. Download the setup app from http://libgdx.badlogicgames.com/download.html and open it:

Set up your project name (ours will be called Space Gladiators) and package name (ours is com.deeep.spaceglad). Enter the game's main class name (ours is Core), set the destination path to your preferred directory, and point out the Android SDK directory location.

We will check the Desktop, Android, and iOS project, but leave out Html since we will use the Bullet physics API, which doesn't work on HTML because of the Google Web Toolkit (GWT) backend (for more information, check out http://www.badlogicgames.com/wordpress/?p=2308).

From Extensions, we'll select Bullet (Bullet physics API), Tools (Bitmap Font Generator [Hiero], 3D Particle Editor, and TexturePacker), Controllers (Controller Input API), and Ashley (Entity System API).

LibGDX comes, as you can see, with a lot of very useful tools that you should use for some time and explore them. We'll cover these selected APIs in some depth over the course of this book.

Click on Generate and wait. After it is done, open IntelliJ IDEA and click on Import Project. Go to your newly created project and look for a file called build.gradle, and IntelliJ will do everything else.

主站蜘蛛池模板: 凌源市| 资阳市| 宝兴县| 沙雅县| 闽清县| 象山县| 辽中县| 和静县| 班玛县| 云阳县| 廉江市| 沂水县| 萍乡市| 伊宁县| 东莞市| 桦南县| 康定县| 共和县| 兰西县| 万全县| 桐城市| 醴陵市| 晋中市| 东乡县| 大渡口区| 河西区| 安达市| 襄垣县| 泰安市| 泉州市| 涞水县| 芜湖县| 清水河县| 界首市| 环江| 密云县| 无极县| 丹凤县| 左贡县| 弥勒县| 剑阁县|