majesto-games / curves2

HTML5 implementation of the popular multiplayer game 'achtung die kurve'
https://curves.netlify.com/
0 stars 0 forks source link

Figure out how to serve list of online rooms #2

Open nikteg opened 6 years ago

nikteg commented 6 years ago
nikteg commented 6 years ago

If we want to collect stats such as 'total games played today' a custom backend is needed.

nikteg commented 6 years ago

I've implemented a rudimentary p2p gossip protocol using a scuttlebutt CRDT. Currently it trusts all peers and does not handle room removal. See https://github.com/majesto-games/curves2/commit/48c1c451253634dcc4ef1287d8f07464781537d9

nikteg commented 6 years ago

I will research https://github.com/dominictarr/epidemic-broadcast-trees as an alternative to scuttlebutt (the gossip protocol+database), as scuttlebutt seems to be no longer maintained in favour of scuttlebutt-secure (which is something else entirely 🤷‍♂️ and requires a local server running outside of the browser because of crypto-stuff).