Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(1 edit) (+4)

If you’re using a game engine, learn the language(s) that it suppprts.

Otherwise, you can use pretty much any language for making games. In the industry, however, C++ is a common choice because it is fast and flexible, though not easy to learn. C# is a common alternative to C++; It is easier to learn and use, though you lose some of the speed and flexibility that C++ offers.

What you choose ultimately comes down to what kind of game you want to make. If the game is to have realistic graphics or large worlds, choosing a fast language will be necessary. On the other hand, if your game is going to have simple 2-D graphics or no graphics at all and isn’t going to have massive amounts of game objects active at once, easier to use (but slower) scripting languages could be used, such as Python or Lua.

Programming language choice will also depend on how experienced you are; If you have never programmed before, choosing an easier to use language like Lua will be a bonus.

(+1)

I pretty much agree with the entirety of this answer, and here's a list of game engines and the languages they're implemented and scripted with https://en.wikipedia.org/wiki/List_of_game_engines

I see a form of this question asked a lot in general software development, "What is the one programming language I should learn?" and I think it would be a mistake to plan on just learning one language. As you can see there are a lot of languages in use (sometimes in the same game engine) and it would expand your options if you're open to learning more than one, and while some languages are pretty similar, others have much different styles and approaches to programming, so kind of like learning multiple human languages, it'll expand your brain.