๐Ÿ’ป Computers

How are video games made?

A game controller in front of a screen where a hero jumps to grab a coin

๐Ÿ“– In short

Behind every video game is a whole team: programmers who write its rules, artists who design its characters, musicians who compose its tunes and writers who invent its story. And at the heart of every game is a magic loop that repeats dozens of times a second without us noticing.

๐Ÿคฉ Did you know?

  • One of the first famous video games was a simple tennis game from 1972: two paddles and a square ball!
  • Hundreds of people work on some big games for several years.
  • The sound of characters' footsteps in games is sometimes recorded by walking on gravel and snow in a studio.
  • Many programmers started by making little games when they were children.

๐Ÿ”Ž Find out more

๐ŸŒŸ The game loop

Every game repeats three steps without stopping: it reads what you pressed, works out what happens (did the character jump? did it crash?), then draws the new picture. This happens about 60 times a second, so we see smooth movement.

๐Ÿ” Animation

Movement in a game is still pictures shown one after another very fast, like drawings in a flip book. Each picture is called a โ€œframeโ€.

๐Ÿ’ก Rules written with conditions

โ€œIf the hero touches a coin, add a pointโ€, โ€œif he falls in the water, start againโ€: a game is full of conditions that programmers wrote one by one.

๐ŸŽฏ Play smart

Games are fun and some teach thinking and planning, but we choose games suitable for our age, set a time limit, and remember to move about and play with our friends in real life too.

๐Ÿงญ Game physics

When a character falls or a ball bounces, that's a calculation the programmer wrote: gravity makes the fall faster every frame, and the wall turns the ball back.

๐ŸŒˆ Level design

The designer arranges the levels from easy to hard and places rewards and challenges carefully, so the player learns something new at each stage without getting bored.

๐Ÿ“Š See how it works

The game loop: read the buttons, work out what happens, then draw the picture, about 60 times a second
The game loop: read the buttons, work it out, then draw, about 60 times a second.

๐Ÿ“š Key words

Frame
One picture in an animation
The game loop
Reading buttons, working out, then drawing, over and over
Level
One stage of a game

๐Ÿงช Try it at home

Design a level of your game on squared paper: draw the hero, coins and obstacles, and write three rules like โ€œif the hero touches water, he goes back to the startโ€. Then play it with a pebble and a friend!

๐Ÿงฉ Test yourself

1 About how many times a second is a game's picture drawn?

2 What do we call each picture in an animation?

๐Ÿ“š Read next

๐ŸŽฎ Try it yourself