AI Features

Game Loop

In this lesson, you will learn how to make the central function of the game: the game loop.

We'll cover the following...

Most games have one main function that keeps the game running even when the user isn’t doing anything. This cycle of running the same core function over and over again is called the game loop.

In our game, we need the loop to move the tetrominoes down the screen. We drop the tetromino down one ...

Ask