0

C++ or Python

Is C++ better than Python if I want to be a game developer, Why? Why not?

17th Oct 2024, 12:50 PM
يوسف حسين
يوسف حسين - avatar
4 Antworten
+ 4
Choosing between c++ and python for game depends upon what type of game do you want to create, both languages have their strengths and weaknesses. C++ is known for its high performance and low-level memory management, have many powerful game development tools like DirectX, Openg,etc. While Python is much easier to learn and write as compare to c++. Python is recommended by mostly senior for beginners. Python code is easy to understand and its simplicity allow to to focus more on game logic and designs.It has some libraries like panda3d, pygame for developing 2d games in python.
17th Oct 2024, 1:16 PM
Gulshan Mahawar
Gulshan Mahawar - avatar
+ 4
If you want to write games like mobile games, or Steam games, you'll need to use a game engine. There are three major game engines. Are are free for beginners. Unreal, Unity, and GoDot. Unreal uses C++ Unity uses C# Godot uses GdScript, which is similar to Python, or C# Python is easier to learn and a great first language. C++ is a faster and more advanced language, however, it's a bit harder to learn than Python. Still achievable though. If you have never programmed anything before, it's usually easier to start with Python. If all you care about is game development, I would suggest doing a course in Python. Then download GODOT and learn the GDSCRIPT that comes with it. It is also easy, very similar to Python, and you can find hundreds of free tutorials on GoDot and GdScript. If you are trying to do this on a phone and not a computer, you can do Python or basic things in other languages, but game development will be a challenge.
17th Oct 2024, 1:38 PM
Jerry Hobby
Jerry Hobby - avatar
+ 2
For game development, c++ is the official language and if you are serious with game development, you will learn maths and many game techniques. Because some games is hard, you will use game engine. Simple games like 2048, tilegame, flappy bird etc will not need game engine
17th Oct 2024, 2:58 PM
Sharpneli
Sharpneli - avatar
0
Thank you for giving me your answers, I benefited from you
17th Oct 2024, 6:30 PM
يوسف حسين
يوسف حسين - avatar