Java Programming

 

         

 

Monday, November 4th
Collab Day

 


Questions about Alice - if you have a question about how to do something let me know so we can find an answer.

How to Build a UFO Rescue Game in Alice

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. 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.
Skip step 8.

Add the following Section 2-12 Vocabulary to your Java Definitions document:
- A document that ensures that your animation meets all animation principles.
- A series of illustrated images that represent the main scenes of the animation.
- The methodical process of identifying a complex problem and breaking it down into smaller steps that are easier to manage.
- The story that gives the animation a purpose.
- The process of finding and eliminating bugs in a software program.
- Statements that clearly identify the purpose or the functionality of blocks of programming statements in your program, but do not affect the functionality of your program.
- A list of actions to perform a task or solve a problem.
- The process where the software program converts your code into the animation that you see.
- A detailed, ordered list of actions that each object performs within each scene of the animation.

Begin Section 2-12 Develop a Complete Animation - this is your game project. Here are the steps to follow:

1. Go to Google Classroom to get your copy of the google document to use for this section instead of using the regular lesson.

 

Homework

Complete the writeup of your game description.
Create a sketch of your game user interface.

 

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.