Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Building a 3D Game with LibGDX

You're reading from  Building a 3D Game with LibGDX

Product type Book
Published in Aug 2016
Publisher Packt
ISBN-13 9781785288418
Pages 234 pages
Edition 1st Edition
Languages

Deploying to platforms


For the finishing touches of our game, we will deploy the application; for this, LibGDX comes with handy methods. Open the terminal in IntelliJ with Alt + F12 or navigate to the top-left side on View | Tool Windows | Terminal.

Running and deploying on desktop

To run on the desktop, we can use (other than the buttons on IntelliJ) gradlew desktop:run. Keep in mind that the running directory will be the in Android project's asset folder.

To deploy, we will use gradlew desktop:dist in the terminal. It creates a JAR file in the desktop/build/libs/ folder. It can be run by double-clicking or in the terminal by using java -jar jar-file-name.jar. Though the operating system needs JVM to run a file, it will work on Windows, Linux, and Mac OS X.

Running and deploying on Android

To run on Android, we will write and run gradlew android:installDebug android:run in the terminal.

To deploy on Android, we will write and run gradlew android:assembleRelease in the terminal. This creates...

lock icon The rest of the chapter is locked
arrow left Previous Chapter
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €14.99/month. Cancel anytime}