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

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.

主站蜘蛛池模板: 和顺县| 汕尾市| 海阳市| 高州市| 盐山县| 鄄城县| 剑河县| 合水县| 历史| 福安市| 巨野县| 铜梁县| 加查县| 盐源县| 望都县| 平顺县| 平乡县| 承德市| 通河县| 漯河市| 临武县| 广州市| 商水县| 莲花县| 双鸭山市| 徐州市| 二连浩特市| 河源市| 宁陵县| 菏泽市| 嘉定区| 澎湖县| 句容市| 房山区| 峨眉山市| 竹山县| 龙胜| 丰镇市| 法库县| 大渡口区| 科技|