What function do you use to see if an object is touching something?
isTouching____();
What function do you use to check if a key is pressed?
isKeyPressed(Keys.______);
What is obj.velocity?
obj.velocity is the speed property of an object
What do you need to place at the end of a regular function call (not inside of an if statement)?
Semicolon (;)
Can you run in the dojo?
NO!!!
True or False: you can use the getMouseX() function to get the Y coordinate of the user's mouse!
False: to get the Y coordinate, you use getMouseY(), not getMouseX()!
What is a boolean?
A variable that has a true or false value only.
What is a for loop?
A for loop is a loop that executes a body of code a certain number of times.
What does GDP stand for?
Game Development Platform
Are you allowed to have phones in the dojo?
NO!!!!
What function do you use to move an object left or right?
moveX()
What does the getPointerPos() function do?
It returns the x and y values of the function
What is this code doing? Message is a variable:
message.z(10);
It is making the z value of message 10, ensuring that the variable is on top/higher.
What are two different ways to add a value to a variable?
variable = variable + 1;
variable += 1;
What are some ways to earn ninja tix?
solve the riddle, win kahoot/blooket, earn 3 stars, stay on task, help another ninja, improve typing speed
What is the proper syntax for an if statement?
if(condition) {
...
}
What is the createTimer() function?
How do you create an array?
var variableName = [];
What does this evaluate to?
false || true
False
How often are you allowed to take a break? For how long?
Once every hour for 10-20 minutes.
What are the two parameters of the spin() function?
The object you want to spin and the speed/direction you want it to spin at.
spin(objectName, +-speed);
What is frameIndex?
A function that takes a number and changes the image of an object to the image with that number.
What is an array?
A data structure holding a bunch of objects in an order with rows and columns.
if(num = 3) {
....
}
Does this code have an error?
Yes; == instead of =
== is to compare while = is to assign
Are you allowed to play video games like Roblox and Minecraft in the dojo?
Not without a sensei's permission!