Making a video game is a long, collaborative process that usually kicks off with a project leader or director who comes up with the core concept. Once the idea is approved by the studio, the work is handed off to programmers and concept artists.
Programmers write lines of code that tell the game what to do in response to events, like pressing a button. Concept artists design the characters, enemies, and environments, and their work goes to modelers, who build 3D versions on the computer. Those models then pass to animators, who bring them to life with movement, before everything is integrated back into the game by the programmers. Environment artists add the world around it all.
When the game is finished, it's submitted to a ratings board like the ESRB to determine the appropriate age group. After that, the marketing team builds hype, and the game typically lands on store shelves a few years after the initial concept. It's a lengthy journey from idea to launch.