Changes the image of the sprite
Set animation
Controls horizontal position
What is X?
Checks is something is true
What is if?
What is keyWentDown?
Checks if two sprites are touching
What is isTouching?
Makes something visible
What is visible?
What is else?
What is keyDown?
Checks if two objects are NOT touching
What is !isTouching?
Changes the size of a sprite
What is sprite.scale?
Turns an object
What is rotation?
Checks if something is not true
What is the exclamation sign (!) ?
Detects if mouse is down
What is mouseDown?
What is debug?
This is repeated infinitely
What is a draw loop?
Changes the speed of rotation
What is rotationSpeed?
5 < 3
What is false?
This gives the x position of the cursor
What is mouseX?
Fixes the hitbox of a sprite
What is setCollider?
This holds a value, typically a sprite or a coordinate.
What is a variable?
A pattern used to continuously update a variable
What is a counter pattern?
What is boolean?
This is what the mouseDown("leftclick") returns when the screen is right-clicked.
What is false?
In this case, object 1 is located at (200, 200), and object 2 is located at (350, 200).
What are the locations of two objects that DON'T collide?