October 19th, 2020

Choose a .NET Game Engine

Abdullah Hamed
Senior Program Manager

Developing games is multi-disciplined compared to developing business apps and services. Games need design skills spanning UI, audio, gameplay, and art direction. It also requires engineering skills for graphics, gameplay, audio, cloud services, and develops. Sometimes you need to get low level and play around with hardware registries in assembly to optimize performance for a specific device. Do you need to build all those layers yourself when making a game, or is there a better way? Of course, there is a better way. The .NET ecosystem offers many choices for folks like you who want to make games, but do not want to build everything from scratch. In my previous post, I showcased the diverse .NET game development landscape. In this post I will showcase some of the .NET game engines out there, and will help you choose which game engine is right for you.

a game controller with a laptop with a game engine in the background

Game Engines

Developers used to build their games from scratch each time. Now, developers have abstracted a lot of reusable code in their games and created a set of APIs and tools that they can reuse whenever they start a new game. These Game Engines contain abstractions of graphics, input, media API. They also might contain design tools and assets managers for visual and audio assets. You can think about them as an IDE but for more than just code. Some game companies started releasing their engines commercially.

With the popularity of C# more game engines started using .NET. The Mono runtime, now part of .NET 5, was a great choice because it was able to run C# code on many platforms including Android, iOS, PC, Mac, and Linux. Mono also supported dedicated game consoles like Xbox, PlayStation, and Nintendo platforms. Now with .NET including Mono with .NET 5, we are seeing some game engines getting ready to upgrade.

logos of some popular .NET game engines

Engines built with .NET

MonoGame

MonoGame is a flexible engine. It can also be used as a framework to build other game engines with. It might have started as a multi-platform version of XNA, but it has advanced beyond that scope. MonoGame offers comprehensive APIs for game development and an asset management tool. MonoGame just got updates to version 3.8 where it uses .NET Core 3.1 and NuGet, with a plan to upgrade to .NET 5. MonoGame is so flexible other game engines use it as a base, for example FlatRedBall. Many indie developers use MonoGame for all their cross-platform game development.

Stride

Stride (formerly Xenko) is another pure C# and .NET engine that was developed by Silicon Studios. It’s a complete integrated engine with a graphical editor. Stride is now open-source and royalty free. Different parts of the engine can be used independently thanks to its modular design. Stride also uses .NET Core 3.1 in their latest 4.0 release. I really like the part in their documentation that focuses on folks who have used Unity before.

WaveEngine

Another Engine that is purely .NET is WaveEngine. WaveEngine is free with many of its components open-sourced. Their latest 3.0 preview released just upgraded to .NET Core 3.1. It offers exciting features like running 3D scenes in a browser using .NET WebAssembly (Mono WASM), Azure remote rendering, and support for HoloLens 2. WaveEngine has many mixed reality features, like spatial audio, ready to use out of the box.

NeoAxis

NeoAxis is an engine that was pointed out to me after I published my previous blog post about using .NET for game development. It’s also completely written with .NET, open-source, and royalty free. It supports a full set of features, in including the addition of Android support in the latest release.

 

Engines embedding .NET

Unity

Unity, developed in C++, was one of the earlier commercial engines to use .NET to provide C# scripting and multi-platform targeting. Unity is an integrated engine with a programming API interface as well as visual editing tools for graphics, audio, profiling, and debugging. Unity quickly became one of the most used game engine for all real-time graphics applications like games, VR, and simulations. There is a big ecosystem supporting Unity, from an asset store for plugins and starter packs, to game services like Microsoft Azure PlayFab. Unity is a commercial engine, but its free to use until certain revenue thresholds. It’s also free to use for some educational and personal uses.

Godot

Godot is a royalty free, multi-platform, open-source engine developed using C++. It’s a fully integrated game development engine. It also uses .NET to deliver C# scripting. Lately, Godot has been gaining popularity and its community is growing rapidly. It has also gained support and grants from both Microsoft and Epic games.

CryEngine

The famous CryEngine also uses .NET. The engine was built in C++, but it uses the .NET to enable C# scripting. It’s a powerful game engine with a great history powering AAA games. You only pay royalties when you exceed a revenue threshold.

 

Which engine is right for you?

The most important point when choosing a game engine is how to get support. For beginners, asking peers, or folks online for help is an essential part of learning and remaining motivated. For professionals, enterprise level support is essential to mitigate technical risks. By far, Unity has one of the biggest and most active communities. It also offers paid high-quality enterprise support. In addition, Unity also has one of the biggest ecosystems of services and plugins supporting the engine. Godot has also been gaining more popularity amongst hobbyists and its momentum has been accelerating as well.

Another thing to consider are your own skills, and how well an engine will support you. If you come from a .NET background and want the latest C# features, maybe a pure .NET engine like Stride, WaveEngine, or even MonoGame would suit you best. You can use all the familiar tools with them, like NuGet and the CLI.

An engine with active development gives you security that bugs will get fixed and new platforms and features will be added. Commercial engines might be better for you if that is a concern.

An important consideration when choosing an engine is the price. All the game engines mentioned above are free to start with. Some have royalties attached to them once you reach a revenue threshold. Some of the engines are completely free and royalty free. You choose where the loot goes depending on your financial plans.

Game design can dictate which engine you should use too. One engine might be more suitable than others for certain types of games. For example, using a fully integrated commercial engine to make a text-based adventure might be overkill.

 

We’d love to hear from you

You have a .NET game development related project, plugin, library, or game you want to blog about on the .NET blog? Is there a .NET game development topic that you want me to write about?

Author

Abdullah Hamed
Senior Program Manager

An Arabic game development advocate. I love helping game developers make their vision come true.

16 comments

Discussion is closed. Login to edit/delete existing comments.

  • Kelsam

    PMed via Twitter

  • Влад К

    Hello! If you mentioned NeoAxis, then know that this is a binding to OGRE, and this graphics engine practically stopped developing after the departure of the mentor Sinbad.

    • Roman Shapiro

      I think current version of NeoAxis works on top of bgfx.

  • John Cullen

    I’m sad there is no mention of how well each engine supports using F#.

      • Jorin Gedamke

        Technically, they seem to have dropped F# years ago. So you’d have to install an older version and not expect much in the way of support.

  • dexi lin

    Awesome

  • PoisnFang

    Thank you very much for this amazing article! It is always nice too see what other resources are out there for C# game dev other than Unity.

  • Alexandre LEPRETRE

    Once again, the greatest and most popular game engines of all, Unreal Engine, is not even mentioned in a Microsoft gamedev topic...
    I know it's not C# or .net specific engine but not mentioning it AT ALL is quite shocking, as more than 30% of the current game on the market are made with it (and it's the best of all, in my opinion). It is the better prepared for next gen and most of...

    Read more
    • Mystery Man

      The topic of this article is “.NET Game Engines”; hence, it is natural not to name Unreal.

      Also, Unreal is nowhere as popular as RPG Maker. Ren’Py, or even Adobe Flash. While Unreal is used only in triple-A games, millions of small, obscure games are created with the three that I named. If you don’t mind me asking, where did you get your suspicious “30%” anyway?

      • Alexandre LEPRETRE

        Hi Fleet Command, thank you for your reply.

        I'm aware that this is an article about ".NET Game Engines", but you may not know that Unreal Engine is now compatible with C# scripting via a plugin, as it is for the Cry Engine or Godot, which are also C++ engine with a support for .NET scripting. So it would have been justified to integrate Unreal Engine in the list, since it is considered as the second...

        Read more
      • PoisnFang

        Sorry bud but that article is old... this is the Repo for the extension https://github.com/pixeltris/USharp and its archived now... Microsoft is investing resources into Companies that are investing resources into C#. Epic is NOT officially supporting C# at this time, therefore Microsoft is not investing resources into Unreal, its that simple. You are over analyzing too much and you bias is based on out date info. As an indie dev I also tried to code...

        Read more
      • Abdullah HamedMicrosoft employee Author

        @PoisnFang how do you like your experience with Stride?

  • Ivan Efimov

    Thank you very much for reading feedback and for the mention NeoAxis Engine!

    • Abdullah HamedMicrosoft employee Author

      You are welcome. I am always listening to the community to teach new things.

  • 王宏亮

    In my opinion, TerraFX (fully managed, light weight, using .net 5 function pointers directly,extremely performant) is the best future. See https://github.com/terrafx.