Hopson97 / open-builder

Open "Minecraft-like" game with multiplayer support and Lua scripting support for the both client and server
https://github.com/Hopson97/open-builder/projects/3
GNU General Public License v3.0
700 stars 80 forks source link

Big Rewrite #208

Open Hopson97 opened 3 years ago

Hopson97 commented 3 years ago

It has been a very long time since I have touched this project. At some point in the future, I will likely be scraping a lot of the code (As I am not happy with it, and it's generally pretty bloated).

Just making an issue for the sake of discussion.

Changes I would like to make in the future rewrite:

untodesu commented 3 years ago

I would like to recommend you to use Source Engine styled network architecture for some better multiplayer gameplay experience because I haven't seen this split so client was sending actual commands to the server. In Source Engine style client will just send input commands to the server, and the server will compute everything, then send the snapshot of the world state to the client. Client also can predict server behaviour to reduce lag feelings... EDIT: However it would be inefficient to send chunk deltas, so I suggest to use delta compression only for entities (eg. players, mobs, etc.) and send chunk updates as usual...