Lurker News

Comments (168) 20 threads

Show all comments

Showing thread 15 of 20

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.