Lurker News

Comments (168) 20 threads

Earlier comments
de_elusive#
There is also play-cs.com which is the real counter strike 1.6 in browser.
modeless2 replies#
The client runs in Electron, but there is no web version? Why not?
beepbooptheory1 reply#
Just run `python -m http.server 4000` inside the www directory! Seems to be working for me.
modeless1 reply#
There should be a hosted demo at least. The web's big advantage is instant distribution with no installation on any platform. I think it's a shame to build using web tech and then throw away your biggest advantage by requiring platform-specific local installation.
solcloud#
there is indeed a web version like others mentions, I also provided a prebuild binaries for lots of os/arch at https://solcloud.itch.io/counter-strike-football (and anybody can open PR for more), for hosted webpage demo I can for sure hosted somewhere on public internet as can anybody else, so I will leave that as a optional exercise for a reader to host community server :)

I think most users will build from source or use provided pre-build binaries

artemonster1 reply#
No UDP in browser?
dfox4 replies#
Making FPS game with Electron client and PHP server is an interesting choice of technologies to say the least.
giancarlostoro3 replies#
I was unphased by Electron, but PHP for Counter-Strike? I'm hoping its using regular websockets.
cuu508#
*unfazed
solcloud#
server is written in PHP listening on udp, for client you can use modern web browser with websocket-udp bridge (provided in repo), or use nodejs (electron), I also provide prebuild binaries for some systems on itch https://solcloud.itch.io/counter-strike-football#download
munk-a1 reply#
PHP is a pretty strong language these days - don't knock it until you try it.

There are definitely issues with getting fine grained memory control in a performant manner but for general processing it's pretty competitive.

kak3a#
Ditto. Today's PHP is not your what your grandfather used to use. It's a much matured and evolving language. Python only got so popular due to Google's use and AI. It's like the new Perl.
solcloud#
thank you I guess, I started with php because of rapid development and TDD, but now you can transcode php to C++ or WebAssembly pretty easily, so using vkphp or once wasm socket will be in spec than it is free easy transcode (or using Emscripten), or second option since code is quite simple it will take like barely one week to rewrite it in c++ or other languages which is my plan once the game is future complete and stable (hopefully I will not have to develop my own language :D)
klaussilveira1 reply#
PHP is _fast_. That is a pretty good reason, specially for this type of game.
krapp1 reply#
PHP is fast for rendering websites, but I doubt it's faster than any other language a game this could be implemented in.

I guess if the client is Electron, they're stuck with the web stack.

wiseowise#
> I guess if the client is Electron, they're stuck with the web stack.

I don’t see any correlation.

oakesa1 reply#
I came here for the cstrike and stayed for the 'open source' toxic popcorn. Please keep me in the screenshot when this gets picked up by all the news sites.

And great project.

solcloud#
we have a bit of both here

thank you

Load more comments