Most active commenters

    ←back to thread

    241 points solcloud | 11 comments | | HN request time: 0.942s | source | bottom
    1. dfox ◴[] No.41916309[source]
    Making FPS game with Electron client and PHP server is an interesting choice of technologies to say the least.
    replies(5): >>41916324 #>>41916332 #>>41916425 #>>41916828 #>>41919033 #
    2. ◴[] No.41916324[source]
    3. giancarlostoro ◴[] No.41916332[source]
    I was unphased by Electron, but PHP for Counter-Strike? I'm hoping its using regular websockets.
    replies(3): >>41916641 #>>41916696 #>>41916859 #
    4. munk-a ◴[] No.41916425[source]
    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.

    replies(1): >>41917021 #
    5. cuu508 ◴[] No.41916641[source]
    *unfazed
    6. hu3 ◴[] No.41916696[source]
    Yep.

    Server UDP:

    https://github.com/solcloud/Counter-Strike/blob/7dab1533ec4d...

    Client Websocket:

    https://github.com/solcloud/Counter-Strike/blob/7dab1533ec4d...

    7. solcloud ◴[] No.41916828[source]
    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)
    8. solcloud ◴[] No.41916859[source]
    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
    9. kak3a ◴[] No.41917021[source]
    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.
    10. klaussilveira ◴[] No.41919033[source]
    PHP is _fast_. That is a pretty good reason, specially for this type of game.
    replies(1): >>41919892 #
    11. krapp ◴[] No.41919892[source]
    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.