Monday, October 28th
Collaboration Day

 

Check Grades - make sure there are NO mistakes and that they are up to date!

Office 365 free for students - sign up today!

Review of Event Listeners and Handlers

Project 2-11 Starter File - this file must be downloaded and unziped. Once you have unzipped the file open it is Alice and then save it as 2-11UnderTheSeaStartYour Name

Add the following Section 2-11 Vocabulary to your Java Definitions document:

- Allow the user to control one or more objects with the keyboard keys while the animation is running.
- Any action initiated by the user that is designed to influence the program’s execution during play.
- Listen for, and react to, a keyboard keystroke that you specify.
- The act of coding events to handle each procedure.
- Procedures in the Scene class that listen for keyboard input while the animation is running.

Begin Section 2: Lesson 11 - Variables slides.
Begin Section 2-11 Variables practice. Save the White Rabbit Project as 2-11 Rabbit Keyboard. Save optional 1 activity as 2-11 Submarine. Save optional 2 activity as 2-11 Snow Yak.

Begin Section 2-11 Variables project. Save the fish as Fish_11.

Begin to create your own game program or animation. Add keyboard controls so the program becomes interactive.


 

Homework

Begin to create your own game program or animation.

 

What

In this lesson, you will learn how to:
• Use the IF control statement to effect execution of instructions
• Use the WHILE control statement to create a conditional loop for repetitive behavior

 

Why

When you create an animation or a game you may want an object to execute an action based upon a decision. You can use the IF control structure to help an object make a decision. “If you encounter a rock turn left, otherwise continue going forward”. You may also want objects in your animation to execute an action while
some condition is true. “While the boat moves left wave the person’s hand”. You can use the WHILE control structure to continuously loop an action while a condition is true.

 

How

By completing the slides, quiz and practice exercises.