CompSci 190
Fall 2022
Programming Games
FOCUS Section

List and Loop Practice

In these practice exercises, you will use loops to create different patterns of Sprites within the game window.

Getting Started

Patterns

Complete the following patterns using loops, such that the number of shapes that appear in the window can be changed by changing the one variable NUM_OBJECTS defined at the top of the program or by changing the number of lines in a data file.

The given starter code creates the list for you, handles drawing the shapes, and switches between the patterns based on key presses. Comments in the given code give more information about the patterns to create.

Here is a video going over the given code.