There are many principles of game programming that apply to our project in this chapter. First, remember that the movement of objects in space is an illusion that we create. Unlike reality, objects that we create will appear to move because we will regularly draw and then redraw the objects in different places.
Another principle that we have discussed is a game loop. The game loop is important as it controls all of the things that need to happen in the game, including the moving and redrawing of objects. The timing of the game loop is important as this will tell the computer how many times to run the game loop. Each time a game loop runs is also known as a frame, and the speed at which the game loop runs is known as the frame rate.
Finally, considering how the player interacts with the game is an important part of the game design. This means that we will consider how the player uses keys and has their score stored in the program's memory and displayed...