c++ vs c# vs python for game development.
So which programming language is best for Game development?
C sharp, c plus plus, or Python?
Well the answer depends on what exactly you want to make.
Let’s start with python.
Python is syntactically easier to read, and it’s the easiest to learn compared to c sharp and c plus plus.
You can start developing games using python with very less time and it requires way less coding to get a finished product.
So Python is great, but often times, it doesn’t work well for complex things.
It is slow and inefficient for game development.
Python is an interpreted language and requires very little specification when it comes to variables, classes, and memory.
Because of this, the interpreter has to pick up the load and define, handle, and declare everything for you in real time.
So with all this in mind, Python is very good for simple 2D games.
So if it’s a side project that you would like to do, go with Python because Python may not be the best for game development, but it is good for various other reasons.
Even though game development using Python is largely unheard in the industry, some of the top game development modules are PyGame and Pyglet.
If you are especially interested in 2D game programming, you can consider Go dot.
Although the community is not that big compared to that of c sharp and unity, using python and go dot, the ‘idea’ to ‘finished product’ is smoother and faster.
Now lets move on to C sharp.
The learning curve is slightly higher compared to Python.
But it is much easier compared to c plus plus.
Compared to c plus plus, it is faster to learn and program in c sharp.
Also it is more frustration free compared to c plus plus.
Unlike Python, c sharp is a compiled language and requires in depth specification.
declaring variables before you use them, defining the class type, and memory management. This is important for games because you need to run a multitude of functions at 60 frames a second.
C sharp is the main language used by the Unity framework which is a popular and well-developed game engine and it is widely used in professional studios.
Also the community with Unity is huge with lots of resources to learn.
Now lets talk about c plus plus.
C plus plus is a lower level language compared to python and c sharp.
The learning curve is the highest for c plus plus because it is designed to make you do more as a programmer. Thus it takes years to master.
It's fairly popular for gaming since it's a bit closer to the hardware, allowing you to manage the memory directly rather than relying on the Operating System or the language such as c sharp to do it for you.
And also a handful of other little tricks that you can only do in C plus plus.
C sharp tends to be more frustration free compared to c plus plus, but c plus plus does give you a bit more control which makes you a more technical programmer.
Total beginner may find C plus plus a lot harder than C sharp so the best advice is starting from C sharp with Unity and then, moving to C plus plus with Unreal.
If you are looking to write a game from scratch then you can probably work with c plus plus and open g l or direct x.
Thanks for watching, if you like this content, please consider subscribing to the channel.
Watch video c# vs python vs c++ for game development online without registration, duration hours minute second in high quality. This video was added by user Art of Engineer 06 June 2021, don't forget to share it with your friends and acquaintances, it has been viewed on our site 14,674 once and liked it 336 people.