/KotlinMultiplayerWebGameTemplate

KotlinMultiplayerWebGameTemplate

Primary LanguageKotlinApache License 2.0Apache-2.0

Kotlin Multiplayer Web Game Template

Template project for multiplayer web games in Kotlin.

Using technologies:

Structure

  • Server (see /jvm)

    Javalin websocket game server that also serves the static js code and assets from the client build.

  • Client (see /js)

    Game client that uses the game lib Kudens. Generates js code from Kotlin.

  • Common (see /common)

    Shared code containing a custom server-client message protocol using Kotlinx-io.

Build

You can build and run the application from the root directory:

./gradlew run

Then go to http://localhost:8080/