A LibGDX and Kotlin Mobile Game Example

Overview

Splinter Sweets - A LibGDX and Kotlin Mobile Game Example

splinter-sweets

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.

Try it here

splinter-sweets-badge

Have a look at my Blog

Visit mariusreimer.com to follow me and my experience and tutorials on cross-platform mobile game development, kotlin and more.

Build the Project

  • 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: libgdx-desktop-run-config
  • 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.

License

Copyright © 2018 Marius Reimer

Distributed under the Apache 2 License.

You might also like...
Android Game App made with kotlin. Allows to play online on the same network!
Android Game App made with kotlin. Allows to play online on the same network!

Reversi - Kotlin/Android Project made for Arquiteturas Móveis at ISEC 2021/2022 Notes Build gradle to run app or install the 'reversi.apk' directly on

Wordle game clone written in Kotlin & using Compose UI Toolkit.
Wordle game clone written in Kotlin & using Compose UI Toolkit.

Wordle Compose Wordle game clone written in Kotlin & using Compose UI Toolkit. Screenshots Compose for Desktop Main screens Playing Victory End of gam

A simple game that was developed using Kotlin
A simple game that was developed using Kotlin

TruthOrDare About the App: A simple Android game that reminds you of your childhood . How to use? 1 - Clone or download the Project to your machine. 2

Android kotlin basics cook game
Android kotlin basics cook game

Android kotlin basics cook game

RemsEngine - OpenSource Kotlin/OpenGL/ECS based game engine

Game Engine: Rem's Engine Parallel to this video editor, I am developing my own

Extensive game framework written in Kotlin

CGS is a minigame framework I wrote in December of 2021. This project was closed-source, but unfortunately, a series of events led me to decide to open-source it.

Spooky house game with monsters and sounds
Spooky house game with monsters and sounds

SHGWMAS Spooky house game with monsters and sounds INSTRUCTIONS to play the game you must: have a brain downloaded the world + jar from the releases t

Terminal Game. Black and White have only pawns. White wins if their pawn moved to 8th line. Black wins if their pawn moves to 1st line. If black or white haven't any move, then no one wins(stalemate))

Only-Pawns-Chess Terminal game for 2 players Regular chess but all sides have only pawns Rules This game extend all the rules of regular chess but it

Tic Tac Toe is a two-player game in which the objective is to take turns and mark the correct spaces in a 3x3 (or larger) grid
Tic Tac Toe is a two-player game in which the objective is to take turns and mark the correct spaces in a 3x3 (or larger) grid

Tic Tac Toe is a two-player game in which the objective is to take turns and mark the correct spaces in a 3x3 (or larger) grid.

Comments
  • Update to libgdx 1.9.7-SNAPSHOT. Better ignore artifacts file for iOS.

    Update to libgdx 1.9.7-SNAPSHOT. Better ignore artifacts file for iOS.

    • moe 1.3+ is compatible with libgdx 1.9.6+ and recommended to use that version, in this case modified it to be 1.9.7-SNAPSHOT thus will solve crash error on iOS as it cannot find relavent .a libraries files as should be built and copied to respective directory inside ios/xcode/native/ios (tested on simulator and iOS device with Xcode 8.3)
    • Updated .gitignore file to ignore artifacts file which will be generated when build the project for iOS. Due to those files are large in size in multiple of MBs. It's better not to include them in source tree. This also ignored user's data inside Xcode project file too.

    This tested on Android Studio 2.3.1.

    opened by haxpor 2
  • Unable to run

    Unable to run

    I mean, IDK, I've looked for a solution for 2 hours, and nothing works... if i open this project on Android Studio 4, i get:

    Could not determine java version from '11.0.8'.
    
    The project uses Gradle 4.6 which is incompatible with Studio running on Java 10 or newer.
    See details at https://github.com/gradle/gradle/issues/8431
    Possible solution:
     - Upgrade Gradle wrapper to 4.8.1 version and re-import the project
    
    opened by AlbertoSinigaglia 0
Owner
Marius Reimer
Software Engineer | React Native, React, Flutter, Rust
Marius Reimer
This is an application that is about an X / O game. You can enter the names of the game, and there is also a screen for those who win and there is a button to continue playing and the game determines the result of each player

Game-X-O This is an application that is about an X / O game. You can enter the names of the game, and there is also a screen for those who win and the

Mohamed Rafat 2 Aug 20, 2022
An open-source, mod-friendly Android+Desktop remake of Civ V, made with LibGDX

Unciv - FOSS Civ V for Android+Desktop What is this? An open-source, mod-friendly Android+Desktop remake of Civ V, made with LibGDX Is this any good?

Yair Morgenstern 4.7k Jan 5, 2023
Game made with Korge (Kotlin Multiplatform game engine)

MolesAttack Kotlin Multiplatform Game Play Html/js: https://feliperce.github.io/MolesAttack-Distribution/ Jar: https://feliperce.github.io/MolesAttack

Felipe Rodrigues 10 May 30, 2022
Our maze game is an 2d-animation game developed using android studio.

Our maze game is an 2d-animation game developed using android studio. The game consists of a ball and a board with a hole in the center of it. We are using accelerometer as controller to guide ball towards the hole. T

Suraj Devgan 6 Nov 29, 2022
simple game implements with kotlin and jetpack.(covered by unit test)

Simple Spy Game: Source Code ?? Published version ?? This repository contains a detailed game app that implements simple game using Koin, Room, Corout

Reza Darvishian 11 Jul 2, 2022
Android Kotlin: Matching Kitties: A Game Inspired by Cats

Android Kotlin: Matching Kitties: A Game Inspired by Cats A kotlin based Android memory game Screenshots | | | | | | | | | Viewing the App You can clo

Ryan Jandrick B. Obeles 20 Aug 1, 2022
TicTacToe Game Built With Kotlin

?? TicTacToe/Kotlin.... ?? TicTacToe-Kotlin- , , , , , , ,

null 1 Dec 17, 2021
AKotlin guess the word game in kotlin

GUESS THE WORD KOTLIN App Content appContent.mp4

Yusuf Talha KILIÇ 1 Dec 21, 2021
Bigger Number Game With Kotlin

Bigger Number App Vaidansh Bhardwaj Bigger Number App (aka "Cal Admission Test")

Vaidansh Bhardwaj 4 Apr 20, 2022
A Tetris game written in Kotlin using JOGL.

A Fast Tetris Game Written in Kotlin Using JOGL. Note: This game is unfinished. Controls Arrow Key Left / Right -> Move the tetromino along the x-axis

Jordan 0 Dec 29, 2021