Which language is used for making games | SoloLearn: Learn to code for FREE!

+10

Which language is used for making games

4/17/2020 7:25:21 PM

Pjc

67 Answers

New Answer

+5

It depends where you want it to run and what type of game it is. C# seems to be most generally recommended

+24

Since Unity is a very popular game engine which uses C# as a scripting language a lot of people here on SoloLearn keep repeating that C# is 'the' game programming language. The Unity game engine is actually written in C++. If you need to modify the engine and recompile it then it is done in C++. Modern game engines have scripting languages which are used to add additional logic to the core game engine. This gets used for things like picking up health and ammo bonuses, and lots of other things. If you were to build a level in unity, or most modern game engines, without writing any scripts you could load up the level and run around in it but a lot of the interaction would be missing. This is where the scripting language comes in. It adds the functionality to your level that changes it from a map into a game. Interestingly Unity used to use a scripting language called Unity Script before it switched to C#. The Godot engine, which is free and open source, uses GDScript but the latest release adds additional languages, including C#, via modules. When using commercial off the shelf engines such as these there are multiple layers to the game. There is the game engine itself, which most homebrew developers won't touch. The scripts that you write. The game assets, models, characters, terrain, sound and music. Then the GUI, menus, load screens, dialogs etc. The scripting language provides an interface to the game engine which allows you to interact with it but you can't make the engine do anything with the scripting language that is not already built into the engine. So C# is still a useful language to learn for gaming if you are going to be using an engine that uses it. Just not the only one.

+11

U can go for c# and c++ And then u can use game engines like unity and unreal

+9

Any language, any framework. All depends on your creativity and project requirements. Is it 2D or 3D, text or graphic, from scratch or with ready-to-use components, etc?

+7

@Peter C... Why do you keep saying C# is best? Wikipedia has a list of game engines at https://en.wikipedia.org/wiki/List_of_game_engines which lists both the primary programming language and the scripting language. If you examine it you will notice that C# is not the most common in either column. Just about every major language has been used to write games at some time or other. The majority of commercial PC and console games are written in C/C++. HTML, CSS, and JavaScript can be used to develop web based games... https://html5gamedevelopment.com/ The jMonkeyEngine is a popular Java game engine... https://jmonkeyengine.org/ Python has the PyGame modules https://www.pygame.org/

+5

The most common language to make games is C++ and C. You can try it using Unreal engine 4 all games made there like Fornite was wrote in C++.

+4

Well, it depends on you... If you want to make a game for iOS users... Swift is best for you... And if it is for Android users you can use C# or Python.

+4

Python It's hard but pygame is good

+4

Search in google with name Like searching python download

+3

If you want to make it on console, it may be C++. On Apple, Swift is best. On Android, Java. but C# is still probably best for now until you have experience

+3

I think c++

+3

there are many : c#, javascript. java. rubi. etc.

+3

C# for Unity C++ for Unreal GML for Game Maker Studio These 3 are the best language of best game engine

+3

Currently, The best programming languages for games are: C++ Java - HTML55 CSS3 JavaScript SQL

+3

Ah, I remember me being this person a looong time ago... It was just 1 year before today 😅. Huh I guess time passes really slow for me 😪

+3

Ok, I think there's some misunderstanding here. Let me clarify some things: Game development is made through the use of an engine. An engine can be thought as a bundle of code that inter relates all of the APIs for what's necessary in a game. To simulate physics and create 2d/3d graphics, for exemple, you could use Vulkan and OpenGL, respectively. A game engine uses those APIs to render visualizations, simulate physics, treat sound and all of that, in a big chunk of code. These engines are usually implemented in C, C++ and C# because these languages are really fast. However, just rendering graphics does not make a game; that's where scripting languages comes in. These languages are what constitutes the game logic, how different entities interact with the world and amongst themselves. So, as a beginner you will probably deal with the scripting only. Which languages should you learn, so? Well, most engines have their own scripting languages that are mostly based on languages such as JavaScript, Python an Lua

+2

How about if l want to make a war game

+2

C++, java c# c-sharp is very populer now days

+2

I think c# is better for gaming and unity support this language.

+2

Depends of what kind of game you're creating, and also consider the os. If it's ios, swift is the best choice. But generally C++ it is.