4 ms·
We ran a hackday where we attempted to build a multiplayer snake over websockets using Django channels. I don’t think I touched on it in the write up, but webso
by jsmeaton 8y ago
We ran a hackday where we attempted to build a multiplayer snake over websockets using Django channels. I don’t think I touched on it in the write up, but websockets/tcp is the wrong choice for this kind of game.
Write up: https://devblog.kogan.com/blog/kogame-django-channels https://devblog.kogan.com/blog/kogame-django-channels
Game: https://kogame-snek.herokuapp.com/ https://kogame-snek.herokuapp.com/
Disclaimer: it’s not very good. It was a one day project.
- davewasthere 8y agoI'm surprised that Websockets is the wrong choice. What would be the right choice? WebRTC?
- jsmeaton 8y agoYes, UDP is needed, otherwise you get lockups. We incorrectly attributed rendering delays to react rendering rather than TCP.