🔁 Sprites and Main Game Loop | Betabox Learning

🔁 Sprites and Main Game Loop

Set up the code for adding sprite and loop functionality.

Lesson Steps

  1. Have students go to the Sprites and Main Game Loop section. 
  2. Students will follow along with the video to add more code.
  3. Encourage students to read The Code Explained subsection below.
  4. Check for understanding and answer any questions they may have before moving on to the next section.
  5. Review the section vocabulary below.

Vocabulary

  • For loops: Used to repeat lines of code in a program depending on the elements it reiterates.
  • While loops: Uses true/false conditions to continue (or not) a loop.
  • Increment: To increase a number. Python syntax is +=
  • Decrement: To decrease a number. Python syntax is -=
X
X
X