| CompSci 190 Fall 2022 |
Programming Games FOCUS Section |
In these practice exercises, you will use loops to create different patterns of Sprites within the game window.
Open button (or select File → Open), navigate to where you saved the folder, and select itarcade and letting PyCharm perform the suggested fixComplete 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.
![]() |
|
![]() |
|
![]() |
|
![]() |
|
![]() |