Creating an Animation Program

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

1 Fall 2009ACS-1805 Techniques for designing code Storyboards Text (aka pseudocode) Diagrams Flowcharts (a procedural technique shown in text) Directed.
Programming in Alice Chapter 2. Today’s Agenda Designing a Program Writing Methods Executing Instructions Simultaneously Comments Tips for Setting Up.
1 Fall 2008ACS-1805 Techniques for designing code Storyboards Text (aka pseudocode) Diagrams Flowcharts (a procedural technique) Text presents one of these.
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.
Copyright 2011 Wanda Dann, Steve Cooper, Don Slater Alice Workshop Problem Solving with Alice 2 & Friends.
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.
Programming: Simple Control Structures Alice. Control Statements We have been using Do in order and Do together to control the way instructions are executed.
Creating An Animation Program Alice Web Design Section 8-4.
Classes, Objects, and World-level Methods
Classes, Objects, and World-level Methods Alice. Larger Programs As you become more skilled in writing programs, you will find that programs quickly increase.
Animation Programs: Scenarios and Storyboards Alice Web Design Section 8-3.
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.
Storyboards in Alice Summer 2010 Prof. Susan Rodger.
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.
Xin Nov 15, Introduction to Alice Alice A very visible programming language Programming by dragging objects Interface World window The virtual world.
Alice Program Design and Implementation. Scenarios and storyboards The previous magician example illustrated a simple storyboard which depicts a scenario.
1 Fall 2007ACS-1903 Techniques for designing code Storyboards Text (aka pseudocode) Diagrams Flowcharts (a procedural technique) Text presents one of these.
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.
Creating an Animation Program
CS320n –Visual Programming Classes, Objects, and World- Level Methods Mike Scott (Slides 4-1)
Programming: Putting Together the Pieces Built-in Functions and Expressions Alice.
Fall 2009ACS-1805 Ron McFadyen1 Chapter 2 Program Design & Implementation.
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,
Programming: Simple Control Structures
Creating a 3D Interactive Story Prof. Susan Rodger Duke University July 19, 2007.
Fall 2007ACS-1805 Ron McFadyen1 Chapter 2 Creating Your First Animation (An Introduction to Programming)
Programming: Putting Together the Pieces Built-in Functions and Expressions Alice.
Creating An Animation Program Alice. Recall from last lecture We began the animation creation process We introduced the concept of storyboard We will.
Animation Programs: Scenarios and Storyboards Alice.
Creating An Animation Program Alice. Recall We began the animation creation process We introduced the concept of storyboard We will continue using the.
Creating an Animation Program Alice. The programming steps.
Animation Programs: Scenarios and Storyboards Alice.
Program design and implementation Sept 7, 2010 – Day 2 Object-oriented Programming thru Video Games TIDE 1840 Harry Howard Tulane University.
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.
Alice Development Environment. Which area contains our “program” (set of instructions)? D AB C.
Programming in Alice Chapter 2.
Animation Programs: Scenarios and Storyboards
Classes, Objects, and World-level Methods
Animation Programs: Scenarios and Storyboards
Setting Up the Initial Scene
Classes, Objects, and World-level Methods
Animation Programs: Scenarios and Storyboards
Creating Animations in Alice
Classes, Objects, and World-level Methods
World-level Methods with Parameters
Classes, Objects, and World-level Methods
Creating an Animation Program
Classes, Objects, and World-level Methods
Animation Programs: Scenarios and Storyboards
Programming: Putting Together the Pieces Built-in Functions and Expressions Alice.
Animation Programs: Scenarios and Storyboards
Programming: Simple Control Structures
Programming: Putting Together the Pieces Built-in Functions and Expressions Alice.
Princess & Dragon Part 3: A Knight Comes Riding In—Cameras & Events
Classes / Objects / Methods
Animation Programs: Scenarios and Storyboards
Classes, Objects, and World-level Methods
Creating An Animation Program
Programming: Putting Together the Pieces Built-in Functions and Expressions Alice.
Presentation transcript:

Creating an Animation Program Alice

Basic Programming Process Scenario or general description of animation/problem to be solved Design or storyboard – plan how you will solve the problem (create the animation) Implement or write (code) the program Test or debug the program Always involves implementation (fix code as necessary) May require revisiting design (approach it a different way) May even require rewriting the scenario to make it solvable

Step 1: Design Decide on the problem to be solved Design a solution We will use a storyboard design technique, commonly used in the film industry

Example The scenario is: The problem is: First Encounter After traveling through space, a robot-manned craft has just made a landing on a moon. The robot is on the moon and has set up a camera so earthbound scientists in Houston can view this historic event. The camera view shows the robot, the lunar Lander and some nearby rock formations. Suddenly an alien peeks out from behind a rock, surprising the robot. The robot looks around, spots the alien, and walks over to take a closer look. The alien is frightened and hides behind the rocks. The problem is: How can we create this animation?

Create Initial World Active Learning: Students create initial world. Illustrate use of quad view to position objects relative to one another.

Storyboard Option 1: Sketches

Storyboard Option 2: Screen Shots Initial scene The spiderRobot walks toward the alien

Storyboard Option 3: Text Form A textual storyboard is like a "to-do" list Do the following steps in order alien moves up alien says "Slithy toves?" robot's head turns around robot turns to look at alien Do together robot moves toward the alien robot legs walk alien moves down robot turns to face camera robot “blushes” robot says “Houston we have a problem” Notice how indentation is used to “group” things

Step 2: Implementation To implement the storyboard, translate the actions in the storyboard to a program. Program (a.k.a. script or recipe) a step-by-step list of instructions to have the objects perform certain actions in the animation Do-in-Order or sequential execution is the “default” – what it does if you don’t say otherwise Do-Together or concurrent execution allows simultaneous actions

Action Blocks in Alice Sequential Action Block – actions occur one after another If you don’t put your code inside one of these, Alice assumes Do-in-order Simultaneous Action Block -- actions occur at the same time What should happen if actions have different durations?

Code Do the following steps in order alien moves up alien says "Slithy toves?" robot's head turns around robot turns to look at alien Do together robot moves toward the alien robot legs walk alien moves down robot turns to face camera robot “blushes” robot says “Houston…” Code 1 2 3

Demo Ch02FirstEncounter Look at sample storyboards for “princess save herself” View implementation Traditional Lecture: Create the example world, line by line Active Learning: Create a part of the example world and allow students to complete the program.

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 alien move up 1 m

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. Alice automatically keeps a backup copy for you, but consider saving some of the incremental versions. Save as… proj1start.a2w proj1v1.a2w proj1almostDone.a2w proj1v2.a2w proj1final.a2w proj1v3.a2w

Comments Comments are used to document the code – explain the purpose of a particular segment of the program to the human reader. A partner Your instructor You!

Demo Ch02FirstEncounterwithComments 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 Traditional: Add comments as desired Active Learning: Add a comment and have students add another

Example 2 The scenario is: The problem is: Several snowpeople are outdoors, on a snow-covered landscape. A snowman is trying to meet a snowwoman who is talking with a group of her friends (other snowwomen.) He says “Ahem" and “blinks” his eyes, trying to get her attention. The problem is: How can we create this animation?

Create Initial World Active Learning: Students create initial world. Illustrate use of quad view to position objects relative to one another.

Storyboard Option 1: Sketches

Storyboard Option 2: Screen shots Initial scene Snowman tries to catch snowwoman’s attention Snowwoman looks around Implies lots of programming completed. Use PowerPoint clipart. View code & consider changes…

Improved Snowpeople Snowman tries to get snowwoman’s attention She looks at him, then asks what he wants He winks at her She looks at camera, then blushes She turns to face her friend At the same time The friend giggles The snowwoman shakes her head Snowman turns and leaves dejectedly Which parts are concurrent? What happens next?