Block Basics
Drawing and Shapes
Variables and values
conditionals
Sprite Powers
100

What is the main purpose of the draw() function in Game Lab?

To make sprites appear on screen

100

What block draws a circle?

ellipse

100

What is a variable in programming?

a declared main object that does not change in value

100

What block is used to make decisions in code?

conditional statements

100

What is a sprite?

A object or character drawn on a grid

200

What block starts all animations in Game Lab?

set animation

200

How do you change a circle into an ellipse?

type ellipse or circle

200

How do you create a variable in Game Lab?

grab the purple block VAR()

200

What does a Boolean expression return?

A True or False Value

200

What block creates a sprite?

Create Sprite

300

Which block sets the canvas size in Game Lab?

resize canvas

300

What does the fill() block control?

filling in color of sprite or shape

300

What’s the purpose of updating a variable inside draw()?

so the sprites appear in the correct pattern

300

What happens if a conditional is never true?

Then the sprites will never have any movement 

300

How do you change a sprite’s animation?

Set animation

400

What does the background() block do?

change to background color or image

400

What’s the difference between stroke() and noStroke()?

stroke highlights outside of shape, no stroke does not

400

If x = x + 1;, what is this line doing?

increasing right on the X-Axis

400

How do you write an if...else statement in Game Lab?

Grab the loop function block, then the blue If color block

400

How do you make a sprite move across the screen?

A X+- or Y+- Values

500

How does the order of code in draw() affect what’s displayed?

Display order of elements

500

How would you layer shapes so that one appears behind another?

draw up in the order that you want

500

What happens if you forget to declare a variable before using it?

the sprites will not show

500

How can you use conditionals to detect sprite collision?

IsTouching

500

How do you check if a sprite is touching the edge of the canvas?

Run It