r/tinycode • • 26d 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.

14 Upvotes

5 comments sorted by

1

u/OMGCluck 25d ago

Needs two Android Chrome phones

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

1

u/woqr 25d ago

Firefox doesn't support BarcodeDetector

3

u/OMGCluck 25d 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 25d ago edited 25d 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)

1

u/woqr 20d ago

I made a change by adding a textarea so people can paste in their own game so that they don't have to host it.