This is a modernized, cross-platform MonoGame 3.8.4 sample project, organized for .NET 8 and Visual Studio/VS Code. It demonstrates a catapult game with support for Windows, DesktopGL, and Android (iOS project included, but not tested).
CatapaultWars/
├── Core/ # Shared game logic, assets, and content
├── Platforms/
│ ├── Windows/ # Windows-specific entry point and project
│ ├── Desktop/ # DesktopGL-specific entry point and project
│ ├── Android/ # Android-specific entry point and project
│ └── iOS/ # iOS-specific entry point and project
├── Content/ # Pre-built .xnb assets (used directly)
├── .vscode/ # VS Code tasks and launch configs
└── README.md # This file
dotnet build Platforms/Windows/CatapultWars.Windows.csproj
# To run:
dotnet run --project Platforms/Windows/CatapultWars.Windows.csproj
dotnet build Platforms/Desktop/CatapultWars.DesktopGL.csproj
# To run:
dotnet run --project Platforms/Desktop/CatapultWars.DesktopGL.csproj
dotnet build Platforms/Android/CatapultWars.Android.csproj
dotnet build Platforms/iOS/CatapultWars.iOS.csproj
CatapaultWars.sln
and set the desired platform project as startup..vscode/tasks.json
and .vscode/launch.json
for build/run/debug./Core
and referenced by each platform project..xnb
assets directly from /Core/Content
./Platforms/[Platform]/Program.cs
exists and is correct for that platform.Activity1.cs
)For any issues, please check the project structure and ensure all dependencies are restored from the correct NuGet source.