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

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

14 Answers

0 votes
answered Mar 7 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 by Aakib Ali (160 points)
edited Mar 15 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 by jeb gamespace (140 points)
C++ for unreal engine
commented 2 days ago by Ethan Yu (100 points)
C++ is a good code to make games
0 votes
answered 2 days ago 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 :)

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.