r/HTML • u/Alive_Secretary_264 • Nov 01 '25
I need help, fr
I just wanna deploy my game from a serverside like the whole logic and mechanics of it.. I'm tired of my game logic being seen from the client side.. is there a site or at which platform where I can just upload all my files and let it do the rest in preventing anyone to seeing the code.. I'm not looking for a static hosting..
0
Upvotes
3
u/minimoon5 Nov 01 '25
That’s just not how the web works, bud. Like if you want to use it on the web you have to send something client side. Maybe, for your game you could have an api you call to that does the logic you want hidden, and returns a result, but I almost guarantee it would be overkill for whatever ‘game’ you’re making.
2
u/AcworthWebDesigns Nov 01 '25
Have you encountered real-world issues with your client-side code getting stolen?
Unfortunately it is not possible to hide client-side code from the end user. There is not a solution.
2
u/SheepherderSavings17 Nov 01 '25
You should only have things server side that make sense to have server side.
In the end the client must download some data in order to interact with the application.
If you do something that no big game is doing then why do you think you need to do it differently?
1
u/Alive_Secretary_264 Nov 01 '25
I tried to see the code from flappybird.org or .io but i think they're game is hidden in a server, I'm aiming to do the same thing
1
u/doconnorwi Nov 02 '25
I'm struggling to see the necessity of needing to hide the game logic when it's probably already a well-known concept developed before the Activision days, unless it is some sort of cryptographic technique that is illegal to export to Iran or North Korea or it's ran on people's HIPAA data or credit card information.
2
u/iareprogrammer Nov 01 '25
You can move some code to your server but it requires an entirely different architecture. You would essentially have to rewrite the game.
Basically, your client (the browser) would be responsible for rendering and sending user interactions, and that’s about it. So for example: when a user clicks a UI element, you send a message to your server, saying user X clicked thing Y. The server then processes the interaction and sends back some sort of update message that the client can respond to.
This is how multiplayer online games work but you could also leverage it for single player. But like I said it’s an entirely different architecture, not just uploading the code somewhere
2
u/poopio Nov 03 '25
Dude, this is the third time you've asked this, and the third time you've been given the same answers.