Re:Show HN: Open-source Counter-Strike-like game
by therein on Tuesday October 22, 2024 @01:49PM
(#41916788)
You would think it would run in browser. Why are the clients packaged electron applications?
[ Parent
| on HN ]
Re:Show HN: Open-source Counter-Strike-like game
by solcloud on Tuesday October 22, 2024 @02:14PM
(#41917051)
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 :)
Re:Show HN: Open-source Counter-Strike-like game
by modeless on Tuesday October 22, 2024 @03:58PM
(#41918078)
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/
Re:Show HN: Open-source Counter-Strike-like game
by solcloud on Tuesday October 22, 2024 @05:05PM
(#41918696)
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)