Open-source phone-as-controller libraries for Godot 4 and Unity, MIT licensed with Cloudflare Tunnel support
film_girl · x · 2026-10-01
Developer jetha released MIT-licensed phone-as-controller libraries for Godot 4 and Unity, with Cloudflare Tunnel integration so devices don't need to share a network.
- Phone Mass Controllers (Godot): a pure-GDScript addon where the game hosts an HTML/JS controller page — players scan a QR code and join via browser, no app, no Node, no relay server.
- Single-port architecture: a hand-rolled RFC 6455 WebSocket server (masking, fragmentation, ping/pong, binary frames) shares one port with HTTP, with a per-frame I/O budget so slow phones can't stall the game.
- Lobby features: rejoin tokens, disconnect grace periods, player id restoration, join codes, kick/ban, and PIN-gated admin.
- The first demo is a Godot port of Triple Triad as a house-party game, inspired by greggman's happyfuntimes.
More from coding & agent
- Herbie Bradley: faster agents will force rethink of long-task workflows — herbiebradley · 2026-10-01
- Smooth autosizing textareas: wrap field-sizing:content with a ResizeObserver to transition height — jh3yy · 2026-10-01
- Codex iOS adds option to keep keyboard open after each prompt — Dimillian · 2026-10-01
- Dev uses AI render projection to build Silent Hill-style Three.js kitchen with Astra — nptacek · 2026-10-01
- Tweet 'I need an app that...' and someone ships you an MVP in 30 minutes — thejasminejade · 2026-10-01
- 7-person robot startup Innate says Grok and Cursor let them do the work of 50 — Baconbrix · 2026-10-01