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

  • Building a 3D Game with LibGDX
  • Sebastián Di Giuseppe Andreas Krühlmann Elmar van Rijnswou
  • 212字
  • 2021-07-14 10:23:56

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.

主站蜘蛛池模板: 会泽县| 巫溪县| 金寨县| 白沙| 晋中市| 巴林右旗| 河西区| 兴仁县| 南投县| 台江县| 依安县| 城固县| 阳朔县| 富宁县| 平江县| 阿拉善右旗| 嘉义市| 芦溪县| 永平县| 潮安县| 镇沅| 太仓市| 益阳市| 长顺县| 和田市| 宾阳县| 吴川市| 昆明市| 新密市| 周至县| 砚山县| 定安县| 淮滨县| 冷水江市| 定西市| 莫力| 平乡县| 贵定县| 杂多县| 鄯善县| 班戈县|