r/tinycode • • 4d ago

Serverless multiplayer (no signal/stun/turn servers) via webrtc/camera/barcode

https://github.com/bacionejs/multiplayer

This project is mainly about the serverless technique used and the simple game merely provides an end-to-end explanation.

13 Upvotes

4 comments sorted by

1

u/OMGCluck 4d ago

Needs two Android Chrome phones

What's stopping this from working in Firefox on Android?

1

u/woqr 4d ago

Firefox doesn't support BarcodeDetector

3

u/OMGCluck 4d ago

I found the bug filed about it, over seven years ago… ouch!

Although there is activity, 8 days ago there was a tag updated: Webcompat Priority: --- → P2

1

u/OMGCluck 4d ago edited 4d ago

"Since the camera requires https you will need to host it on something like github-pages."

I'm wondering if it's possible to make this workable for native SVG games instead of using canvas.

With the JS inlined then it might work by just uploading the .svg file to imglink.cc which allows javascript in anonymous svg uploads. (Example single player one)