A vibrant cartoon landscape with a path leading to a castle, with hot air balloons.
Kids Coding Kit Logo
Loops in Games

Games use loops to stay alive. They're everywhere!

Games are full of loops. A **forever loop** makes the world keep going.

The road in our racing game scrolls downwards because it's inside a forever loop. This loop runs so fast it looks like smooth motion.

Some loops repeat a set number of times, like a jump animation. Others, like this road, go on forever!