This stores information so it can be reused later.
What is a variable?
This is what we call a character or object on the screen in Game Lab.
What is a sprite?
This sprite property controls left and right movement.
What is sprite.x?
This command is used to put words on the screen in Game Lab.
What is text()?
This is a name for someone who can't afford a snack from the Snack Store
What is a Brokie?
This keyword is used to create a variable in JavaScript.
What is var?
This function makes a sprite and gives it a position on the screen.
What is createSprite()?
This sprite property controls up and down movement.
What is sprite.y?
Just like shapes, text uses these two values to decide where it appears.
What are x and y coordinates?
This symbol tells the computer that a line of code is finished.
What is a semicolon?
This symbol means “gets the value of” when assigning a value to a variable.
What is =?
This function is required to actually make sprites appear on the screen.
What is drawSprites()?
This sprite property controls how big or small a sprite appears.
What is sprite.scale?
This parameter is the first thing you put into the text() command.
What is the actual text/words you want to show up on the screen?
DAILY DOUBLE: Do this in 30 seconds and get double the points!
The text is on the screen, but students can’t see it.
Add ONE line to the code below to fix the problem.
background("black");
text("Deez Nuts", 20, 30);
background("black");
fill("white");
text("Deez Nuts", 20, 30);
This function gives different values each time a program runs.
What is randomNumber()?
This function changes the image or animation that a sprite uses.
What is setAnimation()?
This sprite property controls how much a sprite is turned.
What is sprite.rotation?
These are required around the words you want to display using the text() command.
What are "quotation marks"?
What is the name of Mr. Cunningham's unborn child?
(I have mentioned it in class! Hint: It starts with an A!)
Who is Archimedes?
These four steps guide how we solve problems in programming.
What is Define, Prepare, Try, Reflect?
This happens if drawSprites() is written before the sprite is created.
What is nothing/the sprite not appearing?
This programming method uses a dot to change a sprite’s property.
What is dot notation?
This happens if you forget quotation marks when writing text in your code.
What is the program throwing an error or not showing the text?
Answer this simple math problem:
(120 ÷ 4) + (18 × 2) − 9 + 10
What is 67?