This is an example of building a mobile game app using the libGDX game development framework and the Kotlin programming language.
The project includes the following features:
- A simple mobile game to demonstrate the key concepts of the very popular box2D physics library.
- The entire project is written in Kotlin, which is a modern statically typed JVM language and a pretty interesting alternative for Java developers.
Visit mariusreimer.com to follow me and my experience and tutorials on cross-platform mobile game development, kotlin and more.
- Setup your development environment
- For Android, simply use Android Studio to import the Gradle project. Even for Kotlin it is the best choice, because the IDE has a integrated support.
- Consider using the Kotlin plugin for Android Studio.
- To build for desktop, use the following run configuration:
- To build for desktop and create a executable jar file, use the commandline and navigate to your project root folder, then type the following:
- For Windows:
gradlew.bat desktop:dist
- For macOS/Linux:
gradlew desktop:dist
- You can find the resulting jar in the desktop/build/libs folder.
- For Windows:
Copyright © 2018 Marius Reimer
Distributed under the Apache 2 License.