android游戏引擎libgdx学习笔记一

当前流行游戏引擎
为什么会选择libgdx学习呢?理由如下面:
1.rokon和jpct-ae都推荐使用,而且都可能整合libgdx。
2.libgdx全面,性能好,强大,适合长远学习。

什么是libgdx

下载libgdx

安装使用libgdx
Android project setup

Before doing these steps, the Android SDK must first be installed.

    Create a new Android project in Eclipse: File -> New -> Project -> Android Project. Name it appropriately (eg, "gamename-android"). For build target, check "Android 1.5". Specify a package name (eg, "com.gamename"). Next to "Create Activity" enter "AndroidGame". Click Finish.
    Go to the project folder on the file system and create a subfolder named libs. From the nightly zip, place gdx-backend-android.jar and the armeabi and armeabi-v7a folders in the libs folder.
    In Eclipse, right click the project -> Refresh. Right click again -> Properties -> Java Build Path -> Libraries -> Add JARs, select gdx-backend-android.jar and click OK.
    Click Add JARs again, select gdx.jar under the main project and click OK.
    Click the Projects tab, click Add, check the main project and click OK twice.
android游戏引擎libgdx学习笔记一
libgdx框架入口生命周期

学习资料

你可能感兴趣的:(android)