I would like to create a mutliplayer game server i...
# gamedev
n
I would like to create a mutliplayer game server in Kotlin using websockets to communicate between client and server. I'm assuming that i can use something like Http4k or Ktor to handle the websocket stuff and that I need to learn coroutines to enable myself to run a 'game loop' asynchronously alongside the websocket i/o? does that sound generally correct?
👌 1
m
Sound good. You can also check out this project i made which uses Ktor in the server (not really a gameloop in the server yet). It utilizes Kotlin multiplatform to have the JS game client in the same project with shared code, maybe not the setup you are doing. How is your client implemented?
n
This is great, thank you! Lots for me to read and learn from here. As for my client , I haven't gotten that far yet so i have no restrictions. My main working idea for a game is essentially a multiplayer text adventure so i'll probably use JS to make a simple 'terminal' client
173 Views