Making a video game is a real process, and it starts with planning. First, you decide what kind of game you want to build and give it a name. From there, either you or a team handles the art and visual design. Finally comes programming, which is where the game truly comes to life.
There are hundreds of programming languages to choose from, and each one tells the computer what to do. For example, you can code the game to detect when someone presses the spacebar and, in response, make the character jump. In reality it's far more intricate and time-consuming than that — a project can take anywhere from a week to a month, or even several years, depending on scope.
Hopefully that clears things up.