←back to thread

238 points solcloud | 4 comments | | HN request time: 0s | source
1. therein ◴[] No.41916788[source]
You would think it would run in browser. Why are the clients packaged electron applications?
replies(1): >>41917051 #
2. solcloud ◴[] No.41917051[source]
actually game can be run using any modern web browser with websocket (without needing to use electron), I just provide electron as it have better performance (nodejs supports udp so no websocket bridge is needed) and key shortcut like Ctrl-W do not close tab instead you move forward while crouching :)
replies(1): >>41918078 #
3. modeless ◴[] No.41918078[source]
Ctrl-W is fixed in fullscreen, and WebRTC DataChannel provides UDP (both client-server and peer-to-peer). Check my port of Quake III: https://github.com/jdarpinian/ioq3, you can test UDP multiplayer and Ctrl-W live in your browser here: https://thelongestyard.link/
replies(1): >>41918696 #
4. solcloud ◴[] No.41918696{3}[source]
I am fox on fire so Ctrl-W is tab close for me :) but yeah, there are ways (hacks) to make it run in web browser "natively" but only to some extend, I mean you can for sure rebind ctrl-w and other stuff or use chromium, but for me currently real LAN party is playing on electron :) web browser version is for testing and developing (for me at least)