Just ported my first game to Android, and it was a snap!

I usually post here asking noobish questions or such, but I wanted to take this opportunity to sing Monogame’s praises. I recently obtained a Galaxy, and have been working on a series of small, simple educational games to put on it for my daughter (who is 2 1/2 years old) to help her learn her alphabet, numbers, colors, shapes, etc.

In my tinkering with MG, I’ve avoided pretty much anything except Win/Linux projects. I tried using the Android emulator once a few years back, but it was very slow and crashed alot. When googling about how to get started with MG and Android, most of the instructions made it seem like this byzantine mess (although most of these are several years old themselves at this point).

Point being…I decided to try it tonight. Enabled developer mode on my phone, turned on USB debugging, basically drag-n-dropped my game into a new Android project, hit play, and viola! Everything worked with zero code changes. I’m sure I’ll run into some pitfalls as things get more complex - and I can’t figure out how to start the game in landscape mode only, but these are small issues. I am excited! Thank you so much MG team for keeping the project alive and giving a hobbyist like me the ability to use one framework, everywhere.

3 Likes

Awesome! I’m glad you got it working so easily :slight_smile:

That’s really sweet :blush:

Have fun!

Thank you. I plan on open-sourcing them once the codebase graduates beyond the “embarassing” level. I’m sure I’ll post in the showcase here when I do.

2 Likes

if I may suggest something, it would be to test Genymotion, an Android emulator that uses VirtualBox, and it’s a lot faster than the default Visual Studio’s Android emulator.

Even if the best way to be really efficient for me is to have a shared project that contains the core of your game and 2 projects that use it, the first one to deploy on Android, and the second one for desktop. It’s a bit longer to setup, but you will save a loooot of time to test and debug your game :wink: