This project contains the Flood Control game, modernized for MonoGame 3.8.* and .NET 8, with a clean cross-platform structure.
Core/— Shared game logic and codePlatforms/Windows/— Windows-specific project and entry pointPlatforms/Desktop/— DesktopGL (cross-platform desktop) project and entry pointPlatforms/Android/— Android project and entry pointPlatforms/iOS/— iOS project and entry pointContent/— Pre-built .xnb content files used directly by all platforms
- .NET 8 SDK
- MonoGame 3.8.* (NuGet packages are referenced automatically)
- Visual Studio 2022+ or VSCode (with C# Dev Kit recommended)
Open FloodControl.sln and build/run the desired platform project (Windows, DesktopGL, Android, or iOS).
Use the built-in tasks and launch configurations:
- Press
Ctrl+Shift+Bto build (choose the platform-specific build task) - Press
F5to run (choose the platform-specific launch config: Windows, DesktopGL, Android, or iOS)
- No Content.mgcb file is used; the game loads .xnb files directly from the Content folder.
- Platform-specific code is separated into platform folders; shared logic is in Core.
- Android and iOS require appropriate emulators or devices and platform SDKs.
This project was originally from the book XNA 4.0 Game Development by Example: Beginner's Guide by Kurt Jaegers (PACKT Publishing). See: http://www.packtpub.com/xna-4-0-game-development-by-example-beginners-guide/book