This is a modernized, cross-platform MonoGame 3.8.* implementation of Pac-Man, supporting Windows, DesktopGL, Android, and iOS. Shared game logic is in /Core, with platform-specific entry points in /Platforms.
- Core/
- Main game logic and classes (GameLoop.cs, Player.cs, Ghost.cs, etc.)
- PacMan.Core.csproj
- Content/
- Game assets (sprites, audio, fonts, etc.)
- Content.mgcb
- Audio/, bonus/, sprites/
- Platforms/
- Android/
- PacMan.Android.csproj
- Resources/
- DesktopGL/
- PacMan.DesktopGL.csproj
- Program.cs
- iOS/
- PacMan.iOS.csproj
- Info.plist
- Windows/
- PacMan.Windows.csproj
- Program.cs
- Android/
- README.md
- PacMan.sln
- .NET 8.0 SDK or newer
- MonoGame 3.8.* (NuGet packages are referenced automatically)
- For Android/iOS: Xamarin/MAUI workloads and platform SDKs
- Windows:
dotnet build Platforms/Windows/PacMan.Windows.csproj
- DesktopGL:
dotnet build Platforms/DesktopGL/PacMan.DesktopGL.csproj
- Android:
dotnet build Platforms/Android/PacMan.Android.csproj
- iOS:
dotnet build Platforms/iOS/PacMan.iOS.csproj
- Windows:
dotnet run --project Platforms/Windows/PacMan.Windows.csproj
- DesktopGL:
dotnet run --project Platforms/DesktopGL/PacMan.DesktopGL.csproj
- This project currently uses pre-built
.xnbfiles in theContent/directory. The Content.mgcb file has not been updated yet. - If you add new assets, you must build them to
.xnbformat using the MonoGame Pipeline Tool.
- If you see errors about missing content (e.g.,
Content/Audio/YEPAudio.xgs), ensure theContent/directory is copied to the output directory for each platform. You may need to update your.csprojfiles to copy theContentfolder on build. - For Android/iOS, ensure you have the correct SDKs and emulators installed.
- Windows and DesktopGL are the best-supported for desktop development and debugging.
- Android/iOS require additional setup and are best built/deployed from Visual Studio or with the appropriate workloads installed.
Enjoy Pac-Man on your favorite platform!