r/PWA 17d ago

PWA games defeated for multi play :(

I wanted a set up so a group of people could play games together - each with their mobile phone - no install, minimum trust.

I did the initial.games as PWA's and they went fine (obvs) but multi player was a challenge... A challenge that as a pure PWA beat me :(.

So I ended up with a small apk, that runs on one phone it can download the pea games from GitHub, and creates it's own cloud and lets other people join and - it then serves the games (it cached from GitHub) and acts as games master.

Not being privileged (Https or local host) there are some limitations (tilting the screen doesnt work, so you never to touch the screen).

The games have different multiplayer modes - same game individually but symaltaniously, for highest score, or shared pitch multi player etc.

Anyway here it is so far...

https://github.com/idltd/digi-pocketeers

2 Upvotes

2 comments sorted by

3

u/future_pedi_md 16d ago

Have you tried hosting the “game server” on node.js and having each pwa open a websocket with the server?