Skip to main content

Multiplayer on Itch.io Using Godot and Websockets

·127 words·1 min

Sweet!

I should’ve tested this before I got so deep into implementation but I’m glad it works!

There’s a simple relay server implemented in Python which facilitates communication between Godot instances running in the web browser.

My friend set up Dokku on his server so I just fill out a Dockerfile to define a container and push to a git repo. Dokku reads the updated repo and builds the container on the server side, then deploys it. I was a little confused at first because I was expecting the normal container workflow but it’s a pretty clever model.

I’m glad that proof of concept works. Now back to the shenanigans of synchronizing player movement without the help of Godot’s high-level network multiplayer API. I’m learning a lot!