Dominique Louis 3c18749a68 Try to make Find Sessions more reliable in the networking samples. 1 день тому
..
.config 177b9c2f2c Ensure all projects have a .config directory. 2 місяців тому
.vscode 74e2ba0930 Remove IAsyncResult pattern and replaced with modern equivalent. 2 місяців тому
Core 3c18749a68 Try to make Find Sessions more reliable in the networking samples. 1 день тому
Platforms 90d8e27c3f [CatapultNetWars & NetworkStateManagement] Changes to support better scaled rendering. 2 місяців тому
NetworkStateManagement.code-workspace 42e76acf16 Tidy up Sample 2 місяців тому
NetworkStateManagement.sln 787aa50223 History Reset and Projects updated to SDK and MG 3.8.* 3 місяців тому
README.md 787aa50223 History Reset and Projects updated to SDK and MG 3.8.* 3 місяців тому

README.md

NetworkStateManagement

NetworkStateManagement is a MonoGame-based project demonstrating network state management in a game. It supports the following platforms:

  • Windows
  • DesktopGL
  • Android
  • iOS

Directory Structure

  • /Core - Shared game logic and code
  • /Platforms/Windows - Windows-specific entry point and project
  • /Platforms/Desktop - DesktopGL-specific entry point and project
  • /Platforms/Android - Android-specific entry point and project
  • /Platforms/iOS - iOS-specific entry point and project

Prerequisites

  • .NET 8.0 SDK or later
  • MonoGame 3.8.*
  • Visual Studio Code or Visual Studio

Building and Running

Windows

  1. Open the project folder in Visual Studio Code.
  2. Use the build-windows task to build the project.
  3. Use the Launch Windows configuration in the debugger to run the project.

DesktopGL

  1. Open the project folder in Visual Studio Code.
  2. Use the build-desktopgl task to build the project.
  3. Use the Launch DesktopGL configuration in the debugger to run the project.

Android

  1. Open the project folder in Visual Studio Code or Visual Studio.
  2. Use the build-android task to build the project.
  3. Use the Launch Android configuration in the debugger to run the project.

iOS

  1. Open the project folder in Visual Studio Code or Visual Studio.
  2. Use the build-ios task to build the project.
  3. Use the Launch iOS configuration in the debugger to run the project.

Notes

  • The project uses precompiled .xnb files for content, located in the Content folder.
  • All platform-specific code is separated into its own directory to avoid #if/#endif blocks.
  • Shared code is referenced from /Core.