Tuesday, October 29th

 

Introduction to Arrays - creating a collision detection listener that uses an array to detect collisions with multiple objects.

Adding User Controls - Introduction to Events and Event Handlers
addObjectMoverFor
addDefaultModelManipulation - from this - shift, ctrl
keyboardListeners - space bar

Adding Audio to your Animation
Adjusting the length of a sound file
Where to get free Sound Files

To change the image of your ground select this.ground and then in the procedures select the setPaint procedure and drag this into your myFirstMethod. From the pull down menu choose import image and select the image you want to use from the Alice gallery ( C: > Alice3 > application > gallery). Any images you want to use should be placed in this folder.

Adding Image Files - import an image, save it in the gallery, and then create a billboard and apply the image to the billboard.

 

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.

 

Homework

Add Class and Instance to your vocabulary list and fill in the definition of each.

 

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.