The node.js server itself lacks a lot of documentation, there's actually not any documentation. I'm sure this was meant as a prototype tool, but understanding how and why certain things are done isn't possible. The server file itself is also around 1230 lines of code instead of seperating content into other files like enemies, rooms, grids. Again, for the price currently it might be worth it should you be very familiar with Node.JS, but for someone dabbling into the understanding of multiplayer games I do not recommend this product. I'd gladly change this comment if Bukmand should update it.
GameMaker & Nodejs WebSocket Source Code
A downloadable tool for Windows
A example of WebSocket and GameMaker that can run on any platform, you can start learning from that example and do your own MMO.
- Server-sided movement, collision and health for less lag and less hackers.
- MongoDB accounts, Saving Player x, y and Health. and fetches when you reconnect.
- A* Pathfinding for enemies on server using easystar library.
- No Double Login.
- 2 Attacks, Melee and ranged spear.
- Attacks can hit multiple players.
- Low bandwidth usage, Doesn't send every frame.
- Push back hspeed from server.
- No sync issues, if you lag other players will be fine but the lagger.
- Can host more players than GameMaker which is limited to 1024.
- Works on all platforms that support WebSocket.
The Server2 file has more commented code and organized with password encryption.
How to use:
- Install NodeJS and Visual Studio Code.
- Open the server folder from VS Code and Run.
- Start as many clients as you want.
- Arrows to move, Z for Melee and X for Ranged Attack.
- For MongoDB, Create a account, insert your URL to server and allow your iP to access it.
Want support from this project? join my discord group: https://discord.gg/fxCRs9e
In order to download this tool you must purchase it at or above the minimum price of $7.99 USD. You will get access to the following files:
Log in with itch.io to leave a comment.
I understand, though a bit of documentation would be preferred. I'm not trying to bash you and I do want to state that I'm not very experienced in NodeJS, but yeah a quick comment on some of the code or maybe a video that's posted on YT going a bit more in-depth would suit this project very well.
Is there collision detection in it? If so, is it a dependency or something you coded yourself?
Server is updated
If you have any performance issue set FPS=1000/60 instead of 15.5 and add compensation to speed.