Coding is another word for programming. Programs are sets of instructions that tell computers what to do.
Computer games are programs that computers run for us. These programs tell the computer what to put on the screen for us to see and what to do when we move the mouse or press various keys
Above is a small Scratch program or a part of a Scratch program that makes a sprite move right and left as the arrow keys are pressed.
Scratch and Kodu are programming languages that are specifically created to help people learn how to program through creating video games.