Simple FPS Multiplayer Example #139
proc-gen
started this conversation in
Show and tell
Replies: 1 comment 5 replies
-
Sounds great! :) is it still WIP? And are there ingame screenshots? I'll look at the code later, thats gonna be interesting ^^ |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm back with another test project, this time implementing multiplayer with MonoGame and Arch - https://github.com/proc-gen/FpsGame
In it's current state, you can play the game in single player, client hosted multiplayer, joining a multiplayer game, and running as a dedicated host. Multiplayer works as long as the computers are on the same network,
For those interested in how I handled the serialization and syncing between client and server, I would start with this part of the project - https://github.com/proc-gen/FpsGame/tree/master/FpsGame.Common/Serialization. I created
SerializableWorld
andSerializableEntity
to handle moving the data back and forth. The supporting functions I needed to handle creating entities from a dynamic set of components are in https://github.com/proc-gen/FpsGame/blob/master/FpsGame.Common/Ecs/WorldExtensions.cs.As of right now I haven't delved too much into the actual game-play with more of the focus being on multiplayer and some other quality of life features. It is cross-platform, with the only caveat so far being that ARM-based Macs can't load textures.
I'll stop here before I go on too much :)
Beta Was this translation helpful? Give feedback.
All reactions