Is Monogame worth learning?
Background: I've been programming for about 2-3 years now. Strictly web development using HTML/CSS/Javascript/PHP. I'm kinda tired of it and wanted to learn a more in-demand language. I also always wanted to create my own games. So I decided to pursue C#.
I know C# is a pretty big language for game dev - mostly because of game engines like Unity. However, I want to really grow my programming skills. So I knew I'd want to write my own engine as opposed to using something like Unity. I saw that Stardew Valley was created with XNA. XNA was then changed to Monogame when Microsoft stopped supporting it.
However, I can't seem to find a lot of recent resources to learn Monogame. Most tutorials are between 3 and 7 years old. This makes me think that no one is really using it anymore. Even a quick search of this sub only gave me one result that mentioned Monogame.
So, title. Is it worth it to learn? Is there a better alternative? Is there a better place to find more recent resources to get me started?
About this post
- Posted
- Archived
- Score
- 6 · 75% up
- Kind
- Text
- ID
- 15d7vey
42 comments
Just go for Unity unless you're really interested in getting your hands dirty.
Monogame is a nice framework, but it was created for a world when engine licenses were hundreds of thousands of dollars. Unless working at that low level happens to be your kink, you'll have much more fun with a fully fledged engine.
Eh, it's very much a preference thing. People with a heavy coding background and traditional programmer's mindset tend to prefer a Monogame type setup, and people with more of a visual/artistic mindset tend to prefer a full engine.
Unity's editor isn't what I had in mind when I referred to avoiding low level work, though it's certainly an advantage for those that are more visual/artistic.
I'm not knocking on Monogame, I'm a big fan - but it's a framework not an engine, and most folks starting out will be surprised by not having things like physics and collision available out of the gate.
Given OP's previous experience level, I stand by my recommendation that they start with Unity unless they're looking to get into the weeds (which is a totally valid choice).
My primary goal is to enhance my programming skills and learn C#. The secondary goal is to create a game while doing so. So yeah, I'd probably want to get my hands dirty. I'm a programmer that wants to dabble in game development. Not a game developer that wants to learn a bit more code. If that makes sense. I saw how Stardew Valley was created from total scratch without any game engine and it really inspired me to take full control.
Thanks!
If it's your personal hobby and personal free time, then just go for it. After a few weeks and a few months, make some retrospective reviews and see if you are going on the preferred road or not.
In that case what does it matter how old the tutorials are? They are still valid.
In that case the many years old tutorials for xna will still serve you well. They'll mostly be focused on how to build the kind of stuff that comes out of the box with most engines.
It'll be time consuming, but you'll have a much better understanding of those systems by rolling them yourself.
It'll be worth your time to look into mathematics for game development. Any book or series should cover the majority of topics you'll want to brush up on to start getting useful results.
There are new async patterns that you might also find useful, but under-represented in xna tutorials since they were adopted a bit past xna's prime time - you don't need them, but style wise you might find them a bit closer to the code you're used to working with.
I come from Unity just testing, it's full of bugs everywhere, people working with it seem to be used to it, maybe if I keep going, must be used to work that way too. But I cannot overcome the the filling that everything is a mess and out of place, I started programming with Turbo C++ 3.1 and I owns my code, it belongs to me but with a Game Engine cannot fell right, I'm just filling the blanks of someone else programming choices.
I mean a Game Engine seems not to be for me and without going too deep and use something very low level like SDL or SFML and dealing with pointers that wears my mind and not enjoy it anymore.
Lately I was doing some Godot tests too and start to fill the same, that something is missing, I miss the all in code thing.
Don't take me wrong here, I don't plan to work as a game developer, just making some small projects aside my daily work, just for fun.
I thing frameworks like Monogame are completely necessary because are pure code solutions that put you in control of your code and high level enough to avoid be boring and fill like doing more work.
I just wanna say since you keep mentioning that you want to enhance your programming skills - using Unity would do this as well.
It's not like Unity is a walk in the park. It requires a lot of good programming skills to do it well. You'd be writing scripts in C#.
I do not think anyone still uses MonoGame. If I recall it was for Xbox Indie games, 15 years ago.
no. that was xna. monogame forked xna and is still being updated . i use it
I knew the one guy who still uses it would post on my comment.
There's still a crowd that uses MonoGame. Mostly people that started out 10 years ago or so, back when XNA was still developed.
XNA was a Microsoft product. When they discontinued it, the MonoGame project started to recreate the XNA tools and keep it usable on modern platforms. I don't think MonoGame gets any significant new features, it's really just about keeping XNA alive. That's a big part of why you won't find new tutorials for it - why make new ones if nothing's changing?
If you like working in C# and you like a code heavy approach to game dev (as opposed to a more visual oriented approach like you'd get with an engine like Unity), then it's fine. Lots of devs like that approach - mostly the ones who are already strong programmers.
One big downside to MonoGame - if you're looking to get your game on console, it's a licensing nightmare to get C# running on them. You'll have a hard time sorting it all out. I'm not sure what the situation is on mobile devices.
Sounds good. I have absolutely no intentions of porting anything to console. It's more for fun, experience and resume building. Thanks!
How is that? There are plenty of games made in C# published on consoles.
I was in your shoes, almost exactly. I'm a web dev using C#. I wanted to improve my C#. I like the code only approach, tried Monogame, and it was okay, but I really hit my stride using Raylib. (/r/raylib). I've been doing game jams with it for the past 2 years. It's definitely helped me round out my C# skills as well. Happy to chat more (discord: nhawdge)
Thank you a ton! I haven't even heard of raylib. I'll absolutely check it out. Thank you, friend!
If you are interested in learning actual C# game development (not C# development for an engine), you would be well suited with MonoGame, it has a rock-solid foundation as set with its predecessor XNA. (it is only a shame that MS walked away from XNA just as it was gaining the popularity it needed in University courses)
All content from XNA V4 is also current with MonoGame from the basis of the framework itself, so even the older MS tutorials are still usable from a learning perspective, and there have been several Game Development Books on XNA V4 and MonoGame too. A benefit of the framework itself being stable is that all previous content still works.
https://github.com/SimonDarksideJ/XNAGameStudio
The main changes with MonoGame are in its publishing because MonoGame works for more platforms than XNA did, including consoles (although I will admit, as has been stated by others, Consoles are not as simple as that due to the way they need games to run, but each platform does have a path and it is mostly the final built project, and in some cases shaders, that need to be different)
When some say content has not been produced for "ages", in MonoGame's case this is a bonus because MonoGame itself, at its core has not changed because of the foundation Microsoft made through XNA. (although as has been pointed out, I also need to update some of the videos on my channel because the install process has changed, including dependencies, but they are all covered in the Migration posts on the MonoGame docs site)
At the end of the day, MonoGame core has only improved in its ability to handle the various ways that all the platforms it supports are managed, the core "Framework" has not needed to change (and where change is needed, frameworks like MonoGame.Extended exist) as MonoGame always remains 100% backwards compatible with XNA and all the XNA 4 content that has ever been written. (see Reimers tutorials which were written over a decade ago and still work today, find me any other engine that can say that.)
MonoGame is bold and true, staying close to its XNA foundations and giving others the ability to extend beyond it, while not damaging its core audience. Some might say MonoGame should go beyond, but that is where addons and other extensions come in, which themselves need to deal with the complexities of true cross-platform operation, just because C# code can compile on one platform, does not guarantee it will on another, just ask any Unity dev)
/StepsOffPodium
I can't recommend Monogame for 2D games because of technical limitations. But it's always better than learning unity first
Are you aware of any other frameworks similar to monogame? Again, I don't want to use an engine. I want to do as much manual coding as I can. I don't want a program that does 90% of the heavy lifting for me. I haven't been able to find one for C#
I understand, I was in the same situation. Try sfml, I'm pretty sure they have a .NET version, it's comparable to monogame and I haven't ran into any problems yet
You might want to learn C++ instead with SDL or something.
Raylib have bindings for C# and all the popular programming languages.
What technical limitations did you encounter, if I may ask? I'm in between MonoGame (or rather FNA) and C + SDL2, so your input would be appreciated.
Using monogames built in matrices to scale low res sprites causes spritesheet tearing. This is a GPU limitation, not a monogame one. The other downside of monogame is that it does spritebatching, but it obviously has to flush each time you use a different texture. 6 months ago I didnt know this, and was wondering why I was getting 100 fps on a simple tilemap. So you have to account for that by using spritesheets, which makes us loop back the the first problem.
The big downside of SDL however is that it doesnt allow for shaders. I dont know what you're trying to make, maybe you dont need shaders.
Check if monogame is still being developed and the official documentation is updated, if yes, go ahead.
If the answer is no, I would honestly go ball to the wall and just use veldrid or vulkan with metal bindings, physics library and do everything from scratch since you seem to enjoy this kind of thing.
Thank you for posting this question ScrapDraft was going to post the exact same question, it has been usefull to see all of the replies here and thanks for everyone who contributed.
Having researched Monogame my only issue is the lack of active development, still going to try it and make use of the https://www.youtube.com/@GameDevQuickie/videos channel.
My future alternative just in case the monogame experience is not the best will probably be Godot.
I can very much recommend this channel for MonoGame tutorials: https://www.youtube.com/@GameDevQuickie/videos
It's awesome! (...and mine)
We learn MonoGame at college and this is amazing channel :*
<3
I've been watching your videos since I started with Monogame. Keep it going! :D
I'd say it's worth learning it if you want to do more programming/don't want to use an engine. I tried different frameworks like this and I really like MonoGame. Personally I learnt the basics using a Udemy course ("Discover game development with C# programming and MonoGame") and then I used the docs. Yes, tutorials are old and sometimes they were made for XNA/FNA, but it's still good.
As someone else said RayLib is also a cool alternative (in C/C++, or C# with bindings) with a more active community. I also like Löve (lua language) which may be more limited but it's a really cool little framework to mess around with.
There's also SDL (C/C++) but i don't really like it (maybe too low-level for me!)
But you could also use an engine that uses C# (Unity, Godot .NET). In the end you should try these things yourself to see which one you enjoy/understand the most.
Hah, I actually found that same udemy course a few days ago and I've been working my way through it.
Thanks for the detailed answer. I think I'll give unity a shot since it keeps getting recommended. Probably raylib too
Ok, have fun :)
but also don't worry too much, in the end frameworks and engines are tools and you can easily transfer your knowledge from one to another