Game Development Reference
In-Depth Information
For non-Gradle users
Now for the folks who used the old LibGDX project generation method ( gdx-
setup-ui.jar ), you have to copy the JAR files into the libs folder in the respective
projects and add them to build path. The JAR files can be found in libgdx-1.2.0 ,
downloaded earlier in Chapter 1 , Introduction to LibGDX and Project Setup . To do this,
follow these steps:
1. Copy gdx-box2d.jar to the CanyonBunny project.
2. Copy gdx-box2d-native.jar to the CanyonBunny-desktop project.
3. Copy libgdx-box2d.so from armeabi , armeabi-v7a , and x86 to the
corresponding subfolders inside the libs folder in the CanyonBunny-
android project.
4. Copy gdx-box2d-gwt.jar and gdx-box2d-gwt-sources.jar to the lib
subfolder under the war folder in the CanyonBunny-html project folder.
5. You will also need to add <inherits name='com.badlogic.gdx.physics.
box2d.box2d-gwt' /> to your GwtDefinition.gwt.xml file.
6.
Copy libgdx-box2d.a to the libs/ios folder in the CanyonBunny-robovm
project, and update the robovm.xml file as follows:
<libs>
<lib>libs/ios/libgdx.a</lib>
<lib>libs/ios/libObjectAL.a</lib>
<lib>libs/ios/libgdx-box2d.a</lib>
</libs>
7. Now to add the JAR files to build the path, simply right-click on the newly
added JAR files in each project and go to the Add to build path option in the
Build Path menu.
Now, it's all set. Let's check the weather for raining carrots.
 
Search WWH ::




Custom Search