click below
click below
Normal Size Small Size show me how
Javascript Condition
Graves Code.org Conditions
Term | Definition |
---|---|
World.mouseX | The x coordinate of the mouse |
keyWentDown () | Checks if a specific key is pressed once |
World.mouseY | The y coordinate of the mouse |
mousePressedOver () | Checks if the mouse button is pressed over the sprite specified |
keyWentUp () | Checks if a specific key was released |
keyDown () | Checks if a specific key is pressed continually |
playSound (url, loop) | Plays the MP3 sound file from the specified URL |
mouseWentUp () | Checks if a specific mouse button was released |
mouseWentDown () | Checks if a specific mouse button is pressed once |
mouseDidMove () | Checks if the mouse moved |
mouseDown () | Checks if a specific mouse button is pressed continually |
stopSound () | Stops playing the MP3 sound file from the specified URL, or stops all sounds if no URL is given |
if (conditional) statement | A set condition where something specified will happen |
else | Something specified to happen if a condition is not met |
boolean expression | A comparison that is made between two number, text, or logical items |
console.log("message") | Displays text or variable values to help the coder debug their app |