Skip to main content

Choose a .NET Game Engine

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 can be described as more of a framework to build 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 (formally 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?

The post Choose a .NET Game Engine appeared first on .NET Blog.



source https://devblogs.microsoft.com/dotnet/choose-a-net-game-engine/

Comments

Popular posts from this blog

Fake CVR Generator Denmark

What Is Danish CVR The Central Business Register (CVR) is the central register of the state with information on all Danish companies. Since 1999, the Central Business Register has been the authoritative register for current and historical basic data on all registered companies in Denmark. Data comes from the companies' own registrations on Virk Report. There is also information on associations and public authorities in the CVR. As of 2018, CVR also contains information on Greenlandic companies, associations and authorities. In CVR at Virk you can do single lookups, filtered searches, create extracts and subscriptions, and retrieve a wide range of company documents and transcripts. Generate Danish CVR For Test (Fake) Click the button below to generate the valid CVR number for Denmark. You can click multiple times to generate several numbers. These numbers can be used to Test your sofware application that uses CVR, or Testing CVR APIs that Danish Govt provide. Generate

How To Iterate Dictionary Object

Dictionary is a object that can store values in Key-Value pair. its just like a list, the only difference is: List can be iterate using index(0-n) but not the Dictionary . Generally when we try to iterate the dictionary we get below error: " Collection was modified; enumeration operation may not execute. " So How to parse a dictionary and modify its values?? To iterate dictionary we must loop through it's keys or key - value pair. Using keys

How To Append Data to HTML5 localStorage or sessionStorage?

The localStorage property allows you to access a local Storage object. localStorage is similar to sessionStorage. The only difference is that, while data stored in localStorage has no expiration time untill unless user deletes his cache, data stored in sessionStorage gets cleared when the originating window or tab get closed. These are new HTML5 objects and provide these methods to deal with it: The following snippet accesses the current domain's local Storage object and adds a data item to it using Storage.setItem() . localStorage.setItem('myFav', 'Taylor Swift'); or you can use the keyname directly as : localStorage.myFav = 'Taylor Swift'; To grab the value set in localStorage or sessionStorage, we can use localStorage.getItem("myFav"); or localStorage.myFav There's no append function for localStorage or sessionStorage objects. It's not hard to write one though.The simplest solution goes here: But we can kee