Template project for multiplayer web games in Kotlin.
Using technologies:
-
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.
You can build and run the application from the root directory:
./gradlew run
Then go to http://localhost:8080/