🎉 Celebrating 25 Years of GameDev.net! 🎉
Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!
Latest WebSockets Activity
@hplus0603 @frob Hey there!
I just went through both of your messages. There's obviously precious insight in both, but I believe I will have to iterate on the implementation to consolidate my understanding. I imagine I could question or challenge some aspects, but that'd require a hindsi…
![The simplest multiplayer using WebSockets and pure WebGL 1.0 with animation from Resident Evil](https://uploads.gamedev.net/blogs/monthly_2023_05/large.85513c10b02b49f2b004065929a3742c.multiplayer.png)
I implemented the simplest multiplayer using WebSockets (package ws - npm) and Node.js. I send keyboard input to the server, which relays it to other clients. Used by WebGL 1.0, glMatrix and OimoPhysics. Extracted original models, textures and animations using RE1MV. Created a non-skinned skel…
![Deploying a Node.js server with WebSockets on a free hosting Heroku. Web- Desktop Clients (Qt)](https://uploads.gamedev.net/blogs/monthly_2021_12/large.3680cfcc779d4851824faa4bcd5eefa0.HTML5WebSockets.png)
Working example: https://mouse-click-js.herokuapp.com/ in which the coordinates of the mouse click are sent to the server and the response is returned to the client in the form of a message that it displays on the screen.
- Source codes of the server + web client in JavaScript: mouse-click-js-master.z…
![Connect a server and a client with WebSockets in JavaScript](https://uploads.gamedev.net/blogs/monthly_2020_11/large.f68209a053d045728e2d4270a4ef715d.LogoForSocketConnection.png)
It is one of the simples way to make real multiplayer because we can host on Heroku. But now we use localhost. Later I will show how to connect the Node.js server (in TypeScript) and Qt C++ client and if you want to see it right now just open and run this example: https://github.com/8Observer8/webs…