| title | 01: Setting Up MonoGame for Android and iOS Development |
|---|---|
| description | Get started with MonoGame mobile development by setting up your development environment, tools, and SDKs for Android and iOS platforms. |
This tutorial extends the MonoGame 2D Dungeon Slime tutorial to mobile platforms. If you haven't completed the desktop tutorial yet, we recommend finishing it first as we'll be building directly on that foundation.
By the end of this mobile tutorial series, you'll have:
- Ported the Dungeon Slime game to run on Android and iOS
- Implemented touch controls to replace mouse and keyboard input
- Set up cross-platform project architecture for code sharing
- Learned debugging techniques for mobile development
- Published your game to both Google Play and the App Store
- Created automated deployment workflows
Platform Support: Android development can be accomplished on either Windows PC or Mac. However, ARM64 variants of Windows do not run the Android simulator well.
Required Tools:
- Android Device Manager - Used to set up simulators (accessible through Visual Studio)
- Android SDK Manager - Used to install the SDK platforms
Platform Requirement: iOS development requires a Mac, whether you develop entirely on it or use the Pair to Mac option with Windows Visual Studio.
Since Visual Studio for Mac has been deprecated, JetBrains Rider is the currently recommended IDE for Mac development. Visual Studio Code is another viable option too.
Additional Requirements:
- Xcode - Required for iOS development and deployment
- Apple Developer Account - Required for physical device deployment and App Store publishing (enrollment link)
This tutorial utilizes modern .NET project management features to streamline cross-platform development:
We'll be using Central Package Management to maintain consistent package versions across all platform projects. This ensures your shared code library and platform-specific projects use identical dependency versions.
The sample projects use the new SLNX solution format for improved cross-platform development experience and better integration with modern .NET tooling.
In the next chapter, we'll convert the existing Windows-only Dungeon Slime project to support multiple platforms and explore the cross-platform project architecture.