Notice: Undefined offset: 6902316 in /var/www/html/qa-external/qa-external-users.php on line 744
what coding language should I learn for game development - OnlineGDB Q&A
Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

what coding language should I learn for game development

+55 votes
asked Dec 16, 2022 by Luan Parker (220 points)

23 Answers

0 votes
answered Mar 7, 2023 by Alan Vinton (140 points)
The best coding language is the one you're comfortable with, and what kind of games you want to create.

If you want to create 3D games, you can use Unity which uses the C# language and performs well and can be used for a variety of games.

Unreal Engine 4 or 5 are also good for developing games however their games tend to be much larger in file size due to them importing a lot of assets in whenever you use someone elses assets for your software.

Godot is also a very good option which can be programmed using GDScript, which is very much like python and easy to use and learn, or C++. You can create 2D and 3D games using this and the newest version, 4.0, will create beautiful games.

Other languages have their own libraries but these are the main ones I'd recommend. If you are a fan of Python, look into using Pygame as it's very good for 2D applications.
0 votes
answered Mar 15, 2023 by Aakib Ali (160 points)
edited Mar 15, 2023 by Aakib Ali
for gaming you can prefer java as well python but everyone give more preference to java only
0 votes
answered Mar 16, 2023 by jeb gamespace (140 points)
C++ for unreal engine
commented Mar 22, 2023 by Ethan Yu (100 points)
C++ is a good code to make games
0 votes
answered Mar 21, 2023 by V. Kae (180 points)

For Game development :

U can start by the following methods:

Method 1 (beginner) : 

  • Python 3 + Pygame (library)

Method 2 ( intermediate ) :

  • C++  + Opengl 

Method ( intermediate ) :

  • Godot + GDscript (or) C++, C#

method 4 (advanced or intermediate ) :

  • Unity or Unreal Engine +  C++

-------------------------------------------------

I wish u all the best for ur game dev journey :)

0 votes
answered Dec 12, 2023 by Daniel (210 points)
For game development?.I asked chat gpt about it and it says python's syntax is easy to read making it beginner friendly plus C# is also a good choice but if you want to make 3d games c++ and c# is perfect for you because python is mostly 2d games
commented Dec 12, 2023 by Daniel (210 points)
Btw python is the worst at creating games but you'll get used to it
0 votes
answered Dec 17, 2024 by florence niyonkuru (170 points)
for me i think learning c++ and python3 can  be better for game developing. But also if you have  enough time you may study c# ,python3 and c++ because all of them are needed in game developing.
0 votes
answered Dec 21, 2024 by Haider (140 points)
c++ is really good for game development and a great for graphics card
0 votes
answered Dec 1, 2025 by Jason Foreman (180 points)
You should try Java, it's a great coding starter.
0 votes
answered Dec 1, 2025 by Jason Foreman (180 points)
Minecraft Bedrock uses C++, while Minecraft Java uses Java; both are good, but I think C++ is a better coding language for games, as it really releases the limits that Minecraft Java edition has.
0 votes
answered Dec 5, 2025 by Sawyer (340 points)
I don’t know a lot, but I would suggest that you learn unity, its used in a lot of web/ steam games.
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and receive answers from other members of the community.
...