Skip to content
This repository has been archived by the owner on Jun 15, 2021. It is now read-only.
/ mmo-poc Public archive

[OUTDATED] MMO Proof of Concept using Ktor, kotlinx.coroutines, kotlinx.serialization, kotlin-script and Korge game engine

Notifications You must be signed in to change notification settings

soywiz-archive/mmo-poc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

korge-kingdom

Build Status

MMO Kotlin fullstack development. Server is done using Ktor and client is done using Korge, and both communicate by serializing using kotlinx.serialization, use kotlin scripting for some NPCs, and optionally Redis for storage if available or REDIST_HOST env var set.

Blogs: Artist blog, Programmer Blog

QuickStart

  1. Execute ./gradlew runServer
  2. Open http://127.0.0.1:8080 with your favourite browser supporting WebGL

Some commands

  • Run the backend (JVM) serving the client (JS): ./gradlew :runServer

  • Generate FatJAR: ./gradlew jvmFatJar

Technical details

NPCs and server scripts are defined using Kotlin coroutines. Check an example of NPC here: Princess.kt

Frontend is done using Korge and can run in JS or JVM.

Connection happens using websockets, and messages/packets are converted to JSON and back using kotlinx.serialization.

Objectives

  • Use Ktor in a production environment
  • Play with Kotlin multiplatform projects before it is released
  • Experiment with kotlinx.serialization
  • Evolve and use in production Korge game engine
  • Experimenting with PWA for games that work everywhere
  • A graphic playground for experimentation

About

[OUTDATED] MMO Proof of Concept using Ktor, kotlinx.coroutines, kotlinx.serialization, kotlin-script and Korge game engine

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages