remix logo

Hacker Remix

Show HN: Open-source Counter-Strike-like game

206 points by solcloud 11 hours ago | 64 comments

bilekas 9 hours ago

This is wild... PHP server with electron client.. I'm genuinely impressed. It's been many years since I worked with PHP. Back in the days before proper namespaces etc. This just blows my mind. What an incredible effort, I will definitely be helping with this project in my free time. We need more crazy projects like this!

calvinmorrison 3 hours ago

Php is basically runtime Java these days. It's so much better than ye olden days

ARandomerDude 2 hours ago

> Php is basically runtime Java these days

I don't know enough about PHP to understand this comment. Can you elaborate?

mikeweiss 45 minutes ago

I think they're just saying its a lot like Java if Java was a interpreted language and not a compiled language.

solcloud 8 hours ago

thank you for kind words :)

doctorpangloss 8 hours ago

“Make games that are fun to make.”

peppertree 9 hours ago

FYI client side is under www/assets. https://github.com/solcloud/Counter-Strike/tree/master/www/a...

There are no dependencies besides threejs. No typescript or build pipeline. Actually fun to just read the code.

solcloud 8 hours ago

thank you, yes like you said all client-side dependencies are "bundled" inside repository, for reading client code start.js is good starting point (https://github.com/solcloud/Counter-Strike/blob/master/www/a...), for server side starting point is server.php (https://github.com/solcloud/Counter-Strike/blob/master/cli/s...)

diggan 10 hours ago

The GitHub languages thing shows it's 82% PHP, 15% JS and some sprinkles with HTML/CSS. But what is the actual client made with? Is it in a different repository? Or is it all implemented in PHP? Impressive if so.

> This is low violence game

I love this description for a game that is all about shooting others in face, planting/defusing bombs and trying to survive while being shot at.

As a side-note, has the OP ever seen a football field? :) Seems to have a bunch of crosses and other out-of-place lines, but I guess the football isn't the focus so probably matters the least :)

dietr1ch 10 hours ago

Well, no one says you need to shoot, maybe you can go the charisma route and convince the terrorists not to get the bomb down.

no_wizard 8 hours ago

Its like a pacifist run in the old Fallout games

swyx 9 hours ago

ah, talk-no-jutsu, the most powerful weapon in a main character arsenal.

rzzzt 9 hours ago

Negotiator selected!

solcloud 9 hours ago

unfortunetely voice chat is currently not supported :D

evanwalsh 10 hours ago

You can see the client code in `www`: https://github.com/solcloud/Counter-Strike/tree/master/www

The client is a lot of JavaScript (with graphics via Three.js)

solcloud 9 hours ago

yes, client code is JavaScript using Three.js (https://threejs.org/) library, but since server and client is decoupled, client code can be implemented using anything, there is also php cli interactive interface, but most users prefer javascript one which is currently only one with real gui

solcloud 9 hours ago

yes that is correct, all code is in this monorepo, yeah I get little hyped with that animal destroying description :D for that sidenote crosses - love your note - my sense of humor is kinda weird I guess or maybe because I grow up in Europe while watching America movies with football players wearing helmets idk :D

on more humor side there is also php cli interface (https://github.com/solcloud/Counter-Strike/blob/master/cli/c...), but unless you have fancy matrix like font in your terminal emulator you probably do not see woman in red dress laying on pitch :)

NoboruWataya 8 hours ago

Very cool. As an aside, it (the screenshot at least) reminds me a lot of "Extreme Paintbrawl", a game released for PC in the 90s. I used to love playing it when I was a kid. Some years later I found out that it is "considered to be one of the worst video games ever made". :D

https://en.wikipedia.org/wiki/Extreme_PaintBrawl

solcloud 7 hours ago

thank you! very cool, love is specific thing indeed, well we can always brawl for that rank one spot :D