/**
Ninjas use what they know about if statements, conditional statements, and the 
mouse to move an object to complete a game.

New Vocabulary and Concepts
* GDP getMouseY() function
* GDP .y() function

Reinforced Vocabulary and Concepts
* Boolean Logic
* Comparison Operators
* Functions and Parameters
* if() statements
* Object Names
* Pseudocode

Sensei Notes
* This Prove Yourself requires the Ninja to recreate the code from the laser game
but with y instead of x.
* Step 4 is a review of the z coordinate. Sometimes the GDP does not properly 
layer object clones, so the asteroids might not always be where you expect them.

Solution Steps
1 Make sure the Ninja opens the correct scene.
2 The Ninja should play the game to see what functionality needs to be added.
3 This step references Activity 03-02: Laser Chase. The code to complete this 
activity is the same except laser should be ship and x should be y. Have the 
Ninja create their own pseudocode to help them plan.
4 The Ninja can decorate their scene with images, shapes, and emojis. Encourage 
them to be creative and to make something unique.
5 Before they save and submit the scene, make sure the script is correct.
*/

//***********************Scene - Update Every Frame**************************//
if(ship.y() < getMouseY()){
    moveY(ship, 400);
}

if(ship.y() > getMouseY()) {
    moveY(ship, -400);
}

/**
Sensei Stops
5 Tell a Sensei how you created your scene. How did you use the Z value to place 
objects in front or behind other objects?
This is the last game in white belt where Ninjas are asked to add objects to the 
scene, so make sure they have a good understanding of the process.
 */