Alice Program Design and Implementation. Scenarios and storyboards The previous magician example illustrated a simple storyboard which depicts a scenario.

Slides:



Advertisements
Similar presentations
Alice Learning to program: Part Four Creating Sounds, Making Billboards, Fun with 3-D Text, New Events, and Rotating Objects by Ruthie Tucker and Jenna.
Advertisements

Introduction to Alice Alice is named in honor of Lewis Carroll’s Alice in Wonderland Modified by Serita Scott Further modified by Suzy Crowe.
Princess & Dragon Part 2: Teaching a Dragon to Fly—Methods & Properties By Elizabeth Liang under the direction of Professor Susan Rodger Duke University.
1 Fall 2009ACS-1805 Techniques for designing code Storyboards Text (aka pseudocode) Diagrams Flowcharts (a procedural technique shown in text) Directed.
Copyright © 2012 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with Alice: A Visual Introduction to Programming Third Edition.
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.
CS320n –Visual Programming Functions Mike Scott (Slides 6-1) Thanks to Wanda Dann, Steve Cooper, and Susan Rodger for slide ideas.
Copyright 2011 Wanda Dann, Steve Cooper, Don Slater Alice Workshop Problem Solving with Alice 2 & Friends.
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.
Variables and Functions Chapter Variables Named storage location in computer’s memory Programs may need to store data when running o Stored in.
Tutorial for Arrays and Lists By Ruthie Tucker. Description This presentation will cover the basics of using Arrays and Lists in an Alice world This presentation.
Animation Programs: Scenarios and Storyboards Alice Web Design Section 8-3.
CS320n –Visual Programming Introduction to Alice Mike Scott (Slides 2)
Getting Started With Alice By Ruthie Tucker under the direction of Prof. Susan Rodger Duke University, July
Skater World: Part Two By Deborah Nelson Duke University Under the direction of Professor Susan Rodger June
Storyboards in Alice Summer 2010 Prof. Susan Rodger.
Checking for Collisions: Alternative Method Erin Taylor Under the Direction of Susan Rodger July 2015 Duke University.
Creating An Animation Program Part 2 Alice. Method A segment of program code (instructions) that defines how to perform a specific task.
Alice Tips and Techniques. Tips and Techniques I suggest you read the tips and techniques sections at the ends of the chapters. Tells you how to do things.
Poses Tutorial Alex Boldt Under the direction of Professor Susan Rodger Duke University July 2015.
CS329e – Elements of Visual Programming Implementing Programs Mike Scott (Slides 2-2)
Teaching a character to walk in more than one world: Parameters and Inheritance. By Lana Dyck under the direction of Professor Susan Rodger Duke University.
Animation Programs: Scenarios and Storyboards Alice.
A first program Sept 14, 2010 – Day 3 Object-oriented Programming thru Video Games TIDE 1840 Harry Howard Tulane University.
What we will do today Learn about functions in Alice.
Functions Alice.
Classes, Objects, and World-level Methods Alice. Larger Programs As you become more skilled in writing programs, you will find that programs quickly increase.
1 Fall 2007ACS-1903 Techniques for designing code Storyboards Text (aka pseudocode) Diagrams Flowcharts (a procedural technique) Text presents one of these.
An Introduction to Alice (Short Version) – Extras! Yossra Hamid Under the Supervision of Professor Susan Rodger Duke University, June 2014 This is a continuation.
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
Piñata Game: Keeping Score in Alice By Maggie Bashford Professor Susan Rodger Duke University July
Skater World: Part Two By Deborah Nelson Duke University Under the direction of Professor Susan Rodger June 1,
Creating an Animation Program
Variables and Functions Alice. Naming is Important If you get a new pet one of the first things you do is name it Gives you a way to refer to the new.
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,
Tutorial for Arrays and Lists. Description This presentation will cover the basics of using Arrays and Lists in an Alice world It uses a set of chickens.
Programming: Simple Control Structures
Learning to Program with Alice September 22, 2009.
Questions Alice. Functionality A question receives value(s), performs some computation on the value(s), and returns (sends back) a value.
Fall 2007ACS-1805 Ron McFadyen1 Chapter 2 Creating Your First Animation (An Introduction to Programming)
An Introduction to Alice By Jenna Hayes under the direction of Professor Susan Rodger Duke University, June 2009 Updated June 2014 by Ellen Yuan.
Animation Programs: Scenarios and Storyboards Alice.
Creating an Animation Program Alice. The programming steps.
Illuminating Computer Science CCIT 4-6Sep
Program design and implementation Sept 7, 2010 – Day 2 Object-oriented Programming thru Video Games TIDE 1840 Harry Howard Tulane University.
Unit 2 Programming in Alice & Java 1. Day 1: Learning to Program  Objective: Understand the need for step-by-step logic; Basic working of a computer.
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.
Functions Sec 51 Web Design.
Learn about functions in Alice
Creating Animations in Alice
Getting started in Alice
Functions Sec 8-11 Web Design.
Creating an Animation Program
Princess & Dragon Part 2: Teaching a Dragon to Fly—Methods & Properties By Elizabeth Liang under the direction of Professor Susan Rodger Duke University.
Creating an Animation Program
Animation Programs: Scenarios and Storyboards
Functions Alice.
Tutorial for Arrays and Lists
Functions Alice.
Functions Alice.
Functions Alice.
Presentation transcript:

Alice Program Design and Implementation

Scenarios and storyboards The previous magician example illustrated a simple storyboard which depicts a scenario Should come up with the scenario and come up with a design or “plan ahead” strategy to construct the program Scenario – What story is to be told? – What objects are needed? Role vs. background? – What actions are to take place?

Scenario Example Story – A robot’s first encounter with an alien on a distant moon Objects – Robot, lunar lander, alien, rocks Actions – Alien peeks out from behind rocks; robot turns its head and moves toward the alien; the alien hides and the robot sends a message to earth To design this scenario we can use storyboards

Storyboard Can be visual or textual Breaks down a scenario into sequences of many short scenarios – Depicts the sequence of scenes – For an animation there many be dozens of scene sketches drawn by animation artists or generated by computer animation specialists

Example Visual Storyboard From For our purposes, simple stick figures, square, circles, other simple shapes will suffice

Visual Storyboard Can plan out with screen captures from Alice and manually moving objects around Initial scene; robot has climbed down the lander and is exploring Alien appears and says “Slithy toves?” Robot moves toward alien

Textual Storyboards Not everyone has the patience for visual sketches; textual storyboard is a good alternative “To-Do List” and prepares us for writing program code Example for alien – Do the following steps in order Alien moves up Alien says “Slithy Toves?” Robot’s head turns around Robot turns toward alien Do the following steps together – Robot moves toward the alien – Robot legs walk

Textual Storyboards Evaluate and Revise – storyboard is not final – Does the action flow from scene to scene? – Do any transitions need to be added to blend one scene to the next? – Is anything missing? – Should something be changed? Design-Modify-Create cycle

Creating a Program What instructions are needed for the alien storyboard? – Do the following steps in order Alien moves up Alien says “Slithy Toves?” Robot’s head turns around Robot turns toward alien Do the following steps together – Robot moves toward the alien – Robot legs walk Alien moves down Robot turns to the camera Robot turns red Robot says “Houston, we have a problem!”

To-do In Class Program sequential actions for storyboard – Drag actions into “Do In Order” What about moving forward while moving legs up and down? We want this to happen together – Drag the “Do Together” block where you would like things to be done together In our case, drag inside the “Do In Order” but this could be put outside as well

Flowchart Robot moves 2 meters backLeftLeg UpperJoint turns forward 0.1 backLeftLeg UpperJoint turns backward 0.1 frontRightLeg UpperJoint turns forward 0.1 frontRightLeg UpperJoint turns backward 0.1 Can right-click the object to see what the method will do; control-Z to undo

First Attempt Do together – Move robot forward – Turn backLeftLeg forward 0.1 – Turn backLeftLeg backward 0.1 – Turn frontRightLeg forward 0.1 – Turn frontRightLeg backward 0.1

Second Attempt Bug in the previous version, everything done together, including moving forward and backward at once These should be done in order instead Also make sure time adds up to the 2 seconds for the walking motions

Using a Property You can drag the property out to the code window to change a value at some point in the program Drag the robot’s color property and change it to Red

Use Comments Drag the // to explain what the program is doing

Motion Experiment with – Turn – Roll – Move To – Turn To Face – Orient To Try putting a beach ball on top of an animal and have the two move forward together Most likely they will not go in the same direction because we can’t tell which direction the ball is facing Solution is to “orient to” the same direction – Vehicle Property Makes one object belong to another so moving the “vehicle” moves the occupant as well

Arguments: duration, style, asSeenBy Duration – self explanatory Style – abrupt or gentle motion asSeenBy – Defines the directions for forward, backward, up, down, left, right – If world, then absolute directions – If object, relative to whatever direction that object is facing – Book example: helicopter go up but banked