Do the c# can use to create games | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Do the c# can use to create games

28th Apr 2020, 11:46 AM
Shiraz Muhammed
Shiraz Muhammed - avatar
1 Answer
+ 2
C# is great for game development, up to a point. The most popular game engine among indie developers on Earth is Unity and Unity uses C# for game code. The reason I say "up to a point" is that C# is a managed language, meaning it manages memory for you, which is easier than manual memory management but has some drawbacks. So if you are writing performance heavy code like rendering you really want to be using C++, something that lets you get at bare metal. In fact, that's what allows Unity to be so useful, the game play code written by Unity developers is C#, but the engine itself is written mostly in C++. You don't have to worry about the performance critical stuff. It's already dealt with for you which is a big part of why Unity is so easy to use yet so powerful. C# isn't fast and efficient enough for the big AAA studios, they're pretty much all using C++.
28th Apr 2020, 12:14 PM
Tarun Kumar
Tarun Kumar - avatar