在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):libgdx/libgdx-maven-archetype开源软件地址(OpenSource Url):https://github.com/libgdx/libgdx-maven-archetype开源编程语言(OpenSource Language):Java 78.2%开源软件介绍(OpenSource Introduction):libgdx-maven-archetypeThis is a Maven archetype for creating libGDX game projects. InstallingThe archetype is not yet available via Maven Central, so you'll have to build and install it before you can use it to generate skeleton projects. Do that like so:
Once it's installed, you can delete the Creating a skeleton projectCreating a project using the archetype is accomplished like so:
This will then ask you a few questions:
The parts in bold above are the things we typed in. You can pick whatever you want for
Once you enter all that info, Maven will ask you to confirm your choices and then it generates your
new skeleton game in a directory named whatever you specified for Running your skeleton projectWe'll use the names we used in the above example here, so substitute in the names you actually used. Build and run the Desktop backendYou can build and run your game using the Desktop backend like this:
This is pretty simple. It builds the Java code, and then unpacks some native libraries into the right place and then runs the code. You can also build a single jar file version of your game that you can send to friends or do whatever you like with:
Build and run the HTML backendYou can build and run your game using the HTML backend like this:
This compiles the game using GWT and then runs a local web server that serves up the compiled game
on You can also just build the HTML version of the game so that you can copy it to a website or whatever. This is done like so:
This will generate your game in Build and run the Android backendYou can build your game using the Android backend and install it to a device like this:
You can also easily build a signed and zipaligned APK for your Android game when you are preparing
to upload it to Google Play. You need to edit your
to reflect path to your keystore file and the alias of the key you will use to sign your APK. Then you can build a signed and zipaligned APK like so:
The signed and aligned APK file will be in Build and run the iOS backendThis assumes you have Xamarin.iOS installed, as that is currently required to build your game for iOS. Building the iOS backend is currently TBD. Check back later! CreditsMuch of this archetype was adapted from PlayN's archetype. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论