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.

Which programming language is the most beginner friendly when creating games?

+2 votes
asked Dec 12, 2023 by Daniel (170 points)

1 Answer

0 votes
answered Dec 13, 2023 by Peter Minarik (88,130 points)

Depends on how you define a "game".

Simple mathematics/guessing games can be done in any language really (e.g. guess the number).

A bit more complex games that can have a simple character-based UI like tic-tac-to or Battleship or even some dungeon crawler can be implemented again, in any language that supports standard output as these games have minimal or simple user interaction.

If you want to have proper 2D or 3D graphics for your game, you should go for a game engine, like Unreal Engine or Unity or plenty more (you can google game engines). These engines have their supported set of languages. For instance, Unity supports C# among others, while Unreal Engine needs you to learn C++.

C# is way more beginner-friendly than C++ is (as in C++ you have to actively manage memory, pointers, etc, while C# has garbage collection).

I'd recommend starting with C# with some simple character-based games, then move on to Unity and if you're serious, learn C++ and Unreal Engine over the years.

Good luck!

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.