What is the main purpose of the draw() function in Game Lab?
To make sprites appear on screen
What block draws a circle?
ellipse
What is a variable in programming?
a declared main object that does not change in value
What block is used to make decisions in code?
conditional statements
What is a sprite?
A object or character drawn on a grid
What block starts all animations in Game Lab?
set animation
How do you change a circle into an ellipse?
type ellipse or circle
How do you create a variable in Game Lab?
grab the purple block VAR()
What does a Boolean expression return?
A True or False Value
What block creates a sprite?
Create Sprite
Which block sets the canvas size in Game Lab?
resize canvas
What does the fill() block control?
filling in color of sprite or shape
What’s the purpose of updating a variable inside draw()?
so the sprites appear in the correct pattern
What happens if a conditional is never true?
Then the sprites will never have any movement
How do you change a sprite’s animation?
Set animation
What does the background() block do?
change to background color or image
What’s the difference between stroke() and noStroke()?
stroke highlights outside of shape, no stroke does not
If x = x + 1;, what is this line doing?
increasing right on the X-Axis
How do you write an if...else statement in Game Lab?
Grab the loop function block, then the blue If color block
How do you make a sprite move across the screen?
A X+- or Y+- Values
How does the order of code in draw() affect what’s displayed?
Display order of elements
How would you layer shapes so that one appears behind another?
draw up in the order that you want
What happens if you forget to declare a variable before using it?
the sprites will not show
How can you use conditionals to detect sprite collision?
IsTouching
How do you check if a sprite is touching the edge of the canvas?
Run It