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

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

15 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 (170 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 (170 points)
Btw python is the worst at creating games but you'll get used to it
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.