In a multiplayer game, how do you separate pure dedicated server logic from client-only…
- User
In a multiplayer game, how do you separate pure dedicated server logic from client-only data like animation and sounds, while still being able to trigger these animations and sounds but without important code that would require graphics and sound libraries not available in a console-only executable?
- Assistant
To separate the pure dedicated server logic from client-only data, you can use a client-server architecture where the server controls the game logic and the client handles the presentation layer including animations and sounds. This way, the server is responsible for processing the game state, while the client only receives updates from the server and handles the visual representation.
Here's a high-level approach to achieve this: