Creating An Animation Program Alice. Recall We began the animation creation process We introduced the concept of storyboard We will continue using the.

Slides:



Advertisements
Similar presentations
Introduction to Alice Alice is named in honor of Lewis Carroll’s Alice in Wonderland Modified by Serita Scott Further modified by Suzy Crowe.
Advertisements

World-level Methods with Parameters Alice. Larger Programs As you become more skilled in writing programs, you will find that your programs quickly begin.
While: Indefinite Loops Alice. Repetition In some situations, we don’t know exactly how many times a block of instructions should be repeated. All we.
Introducing While loops (and random numbers too) Alice.
Programming in Alice Chapter 2. Today’s Agenda Designing a Program Writing Methods Executing Instructions Simultaneously Comments Tips for Setting Up.
Programming: Putting Together the Pieces Built-in Functions and Expressions Alice.
Tips & Techniques 6 Random Numbers and Random Motion Alice.
Creating an Animation Program Alice. Step 1: Design Decide on the problem to be solved Design a solution We will use a storyboard design technique, commonly.
More About Recursion Alice. A second form of recursion A second form of recursion is used when the solution to a problem depends on the ability to break.
Classes, Objects, and World-level Methods Alice. Programming in Alice© 2006 Dr. Tim Margush2 Class / Object Class A template describing the characteristics.
Animation Programs Alice. Overview 4-step process for creating animations Step 1: Understand Problem Step 2: Design Step 3: Implementation Step 4: Test.
Creating An Animation Program Alice Web Design Section 8-4.
CSE3: Fluency in Information Technology Dr. Beth Simon Computer Science and Engineering CSE B270: Lab Write these down.
Classes, Objects, and World-level Methods
Today’s Agenda 1.Collect Pre-Lab 4 2.Alice Programming Assignment Storyboards 3.Classes 4.Objects 5.Methods 6.Assign pair programming teams and meet upstairs.
Classes, Objects, and World-level Methods Alice. Larger Programs As you become more skilled in writing programs, you will find that programs quickly increase.
CS320n –Visual Programming Introduction to Alice Mike Scott (Slides 2)
Programming: Putting Together the Pieces Built-in Functions and Expressions Alice.
Programming: Putting Together the Pieces Built-in Functions and Expressions Alice.
Animation Programs: Scenarios and Storyboards Alice.
Creating An Animation Program Part 2 Alice. Method A segment of program code (instructions) that defines how to perform a specific task.
CS329e – Elements of Visual Programming Implementing Programs Mike Scott (Slides 2-2)
Animation Programs: Scenarios and Storyboards Alice.
Functions Alice.
Creating An Animation Program Alice. Step 1: Design Decide on the problem to be solved Design a solution We will use a storyboard design technique, commonly.
Storyboarding1 Steve Cooper Barb Ericson August 2009 Storyboarding.
Creating An Animation Program Alice. Recall We began the animation creation process We introduced the concept of storyboard We will continue using the.
Animation Programs: Scenarios and Storyboards
Animation Programs Alice.
Programming: Putting Together the Pieces Built-in Questions and Expressions Alice.
Creating an Animation Program
Functions Sec 8-11 Web Design. Objectives The Student will: Understand what a function is Know the difference between a method and a function Be able.
Storyboarding and Program Design Alice. Step 1: Design Decide on the problem to be solved Design a solution We will use a storyboard design technique,
Questions Alice. Functionality A question receives value(s), performs some computation on the value(s), and returns (sends back) a value.
Creating An Animation Program Alice. Recall from last lecture We began the animation creation process We introduced the concept of storyboard We will.
Creating an Animation Program Alice. The programming steps.
Animation Programs: Scenarios and Storyboards Alice.
Debugging Watch and Text Output Alice. Debugging Techniques Several techniques are helpful in eliminating errors (bugs) in programs: careful design incremental.
Creating an Animation Program Alice. Step 1: Design Decide on the problem to be solved Design a solution We will use a storyboard design technique, commonly.
Class-level Methods and Inheritance Alice. Class-level Methods Some actions are naturally associated with a specific class of objects. Examples A person.
1 Quiz Show Programming Terms. 2 Alice - 3D Virtual Programming Vocabulary Quiz Board Chapter 1 Chapter 2a Chapter 2b Chapter 3 Chapter 4 $100 $200 $300.
Animation Programs: Scenarios and Storyboards
Classes, Objects, and World-level Methods
Animation Programs: Scenarios and Storyboards
Obj: to recognize built-in functions and expressions HW: Read Section 3.1 and do HW4 Edmodo article due Sunday at 8pm Edmodo feedback due 8pm 10/17 Do.
Animation Programs: Scenarios and Storyboards
Functions Sec 51 Web Design.
While: Indefinite Loops
Functions Sec 8-11 Web Design.
Classes, Objects, and World-level Methods
Classes, Objects, and World-level Methods
Creating an Animation Program
Animation Programs: Scenarios and Storyboards
Programming: Putting Together the Pieces Built-in Functions and Expressions Alice.
Creating an Animation Program
Programming: Putting Together the Pieces Built-in Functions and Expressions Alice.
Programming: Putting Together the Pieces Built-in Functions and Expressions Alice.
Functions Alice.
Programming: Putting Together the Pieces Built-in Functions and Expressions Alice.
More About Recursion Alice.
Animation Programs: Scenarios and Storyboards
Functions Alice.
Classes, Objects, and World-level Methods
Creating An Animation Program
Programming: Putting Together the Pieces Built-in Functions and Expressions Alice.
Class-level Methods and Inheritance
Functions Alice.
Programming: Putting Together the Pieces Built-in Functions and Expressions Alice.
Functions Alice.
Programming: Putting Together the Pieces Built-in Functions and Expressions Alice.
Presentation transcript:

Creating An Animation Program Alice

Recall We began the animation creation process We introduced the concept of storyboard We will continue using the example presented in the previous session

Step 2: Implementation To implement the storyboard, translate the actions in the storyboard to a program. Program (a.k.a. script) a list of instructions to have the objects perform certain actions in the animation

Writing the Program Our planned storyboard (to-do list) is: The idea now is to translate the design steps to program instructions. Do the following actions in order snowman turns to face snowwoman snowman “blinks eyes” and calls out to the snowwoman. snowwoman turns around.

Translating the Design Some steps in the storyboard can be written as a single instruction The snowman turns to face the snowwoman Other steps are composite actions that require more than one instruction The snowman tries to catch the snowwoman’s attention is two actions The snowman says “ahem” The snowman raises and lowers his eyes

Action Blocks in Alice Sequential Action Block Simultaneous Action Block

Demo Ch02Snowpeople

Concepts in this first program Program instructions may have arguments Example: for the move instruction, the arguments we used in this example were direction distance DoTogether and DoInOrder blocks can be nested one inside the other

Testing An important step in creating a program is to run it – to be sure it does what you expect it to do. We recommend that you use an incremental development process: write a few lines of code and then run it write a few more lines and run it write a few more lines and run it… This process allows you to find any problems and fix them as you go along.

Comments While Alice instructions are easy to understand, a particular combination of the instructions may perform an action that is not immediately obvious. Comments are used to document the code – explain the purpose of a particular segment of the program to the human reader.

Demo Ch02SnowpeoplewithComments Comments in this example world illustrate description of the action performed by the entire method description of the purpose of a small segment of code

Assignment Read Chapter 2, Section 2 A First Program Read Tips & Techniques 2, Orientation and Movement Instructions

Lab Chapter 2 Lab Lec2