If you are thinking of games like Starcraft, Counter-Strike, and Doom, those are typically written in C++.
Currently, the best programming languages for video games are:
Rebecca recommends the following next steps:
Somil recommends the following next steps:
Having said that,
In retro gaming for very modest systems C and Assembly are the only realistic choices.
For the core engine of AAA games on modern platforms C++.
For Mobile games its usually JAVA.
In most scenarios, you would end up developing a game on a commercial game development engine like Unity, where you could simply use scripting languages.