Alice and Media Computation August 2009

Slides:



Advertisements
Similar presentations
Lesson 7 C Creating a New World Method— the Dragon Captures the Princess Slides are adapted from aliceprogramming.net or
Advertisements

Princess & Dragon – Version 2 By Michael Hoyle under the direction of Professor Susan Rodger Duke University July 2012 Part 2: Using Methods.
Getting Started With Alice By Ruthie Tucker under the direction of Prof. Susan Rodger Duke University, July
CS320n –Visual Programming Class-level Methods and Inheritance – Part 1 Mike Scott (Slides 4-3-1) Thanks to Wanda Dann, Steve Cooper, and Susan Rodger.
Class-level Methods Alice. World / Class Method World method A general method that may refer to multiple objects; not closely associated with any particular.
Class-level Methods and Inheritance Part 1 Alice.
Review of Chapter 4 Sections 1 and 2 World-level methods involve two or more objects break a large problem into smaller, logical units follow a design.
Class-level Methods and Inheritance MMP 220 Multimedia Programming This adapted material was prepared for students in MMP220 as as part of a curriculum.
Alice and Media Computation August 2009 Animation Storyboard  Code Steve Cooper Barbara Ericson.
CSC1401 Animation Creating methods/instructions (class-level)
Parameters and World-level methods Alice. Our Dragon world The dragon must to take off and fly, to carry the princess.
Princess & Dragon Part 2: Teaching a Dragon to Fly—Methods & Properties By Elizabeth Liang under the direction of Professor Susan Rodger Duke University.
Alice Methods and Classes. Methods and Classes Methods – Coordinated sequence of instructions carried out when requested (e.g. move, turn to, etc.) Class.
Lesson 7B Creating Our Own Methods Slides are adapted from aliceprogramming.net or
CS320n –Visual Programming Random Numbers and Random Motion (Slides 6-3) Thanks to Wanda Dann, Steve Cooper, and Susan Rodger for slide ideas.
What is Alice? Graphical Programming Environment and Language Learn object oriented programming using 3 dimensional objects and a story telling approach.
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.
Copyright 2011 Wanda Dann, Steve Cooper, Don Slater Alice Workshop Implementation Algorithm  Code World.my first method Control blocks Statements (methods,
Animation Programs Alice. Overview 4-step process for creating animations Step 1: Understand Problem Step 2: Design Step 3: Implementation Step 4: Test.
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.
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.
Getting Started With Alice By Ruthie Tucker under the direction of Prof. Susan Rodger Duke University, July
Storyboards in Alice Summer 2010 Prof. Susan Rodger.
Class-level Methods Chapter 6 part 1. Classes and Objects Classes o In Alice, classes are predefined as 3D models Objects o An object is an instance of.
Animation Programs: Scenarios and Storyboards Alice.
Variables and Inheritance A More Complex Example Alice.
What we will do today Learn about functions in 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.
Animation Programs Alice.
3D Animation Concepts CS0007 George Novacky. Overview Creating a new world (slides 5 – 13) Remembering camera position (slides )
Copyright 2008 Wanda Dann, Steve Cooper, Don Slater Alice Workshop Functions, Loops, and Parameters.
Methods (part 2) Alice In Action, Ch 2 Slides Credit: Joel Adams, Alice in Action CS 120 Lecture 03 4 September 2012.
Copyright 2008 Wanda Dann, Steve Cooper, Don Slater Alice Workshop Variables & Conditions.
Questions Alice. Functionality A question receives value(s), performs some computation on the value(s), and returns (sends back) a value.
Class-level Methods and Inheritance Alice. Class-level Methods Some actions are naturally associated with a specific class of objects. Examples A person.
CompSci 4 Chap 4 Sec 3 Sept 23, 2010 Prof. Susan Rodger.
Lesson 8C Animation and Events. Step 3: Animation Drag it into the method and have him say “let her go!” Click on the knight in the object tree and scroll.
Princess & Dragon Part 3: A Knight Comes Riding In—Cameras & Events By Elizabeth Liang under the direction of Professor Susan Rodger Duke University June.
Designing a Solution in Alice To create a design, we borrow the idea of storyboards from professional animators at Disney, Pixar, etc.
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.
Setting Up the Initial Scene. Problem Solving in Alice Set up the initial scene in a new world The princess example Setting up the initial scene.
Alice the Free, Fun and Easy Way to Introduce Students to Programming Elaine Witkowski and Jill Nelson.
Animation Storyboard Design
Ira Goldstein Siena College
Setting Up the Initial Scene
Parameters Section 8-8 Web Design.
Animation Programs: Scenarios and Storyboards
Functions Sec 51 Web Design.
Learn about functions in Alice
Creating Animations in Alice
Functions Sec 8-11 Web Design.
Parameters Alice.
CS320n –Visual Programming
Class-level Methods Alice.
Parameters and World-level methods
Princess & Dragon Part 2: Teaching a Dragon to Fly—Methods & Properties By Elizabeth Liang under the direction of Professor Susan Rodger Duke University.
Princess & Dragon Part 3: A Knight Comes Riding In—Cameras & Events
Functions Alice.
Tutorial for Arrays and Lists
Animation Programs: Scenarios and Storyboards
Parameters Alice.
Functions Alice.
Class-level Methods and Inheritance
Functions Alice.
Functions Alice.
Variables and Inheritance A More Complex Example
Presentation transcript:

Alice and Media Computation August 2009 Animation Storyboard  Code Steve Cooper Barbara Ericson

Traditional Problem Solving in CS Read and understand the problem or task specification Design a solution (develop an algorithm) Implement (code) Test Revise, as needed

Designing a Solution in Alice To create a design, we borrow the idea of storyboards from professional animators at Disney, Pixar, etc.

Recall…. Princess Escape A princess has been grounded by her father (a wizard). Being a rather rebellious princess, she has emailed the local dragon taxi service. The dragon will fly to the princess and she will climb aboard the dragon to escape from the castle – to meet some friends at the village dance club.

Visual Storyboards

Textual Storyboard (pseudo code) Do in order dragon takes off dragon flies to princess princess climbs on dragon's back dragon and princess escape knight shakes his arm (and sword) in protest

Implementing a program in Alice Create the program instructions using the drag and drop editor We recommend an incremental development approach write a method test it and so on….

Stepwise refinement - 1 How can a dragon "take off"? Do in order dragon takes off dragon flies to princess princess climbs on dragon's back dragon and princess escape knight shakes his arm (and sword) in protest How can a dragon "take off"? Do together dragon moves up dragon flaps wings

Stepwise refinement - 2 How can a dragon flap its wings? Do together dragon moves up dragon flaps wings Do together dragon flap left wing dragon flap right wing

Stepwise refinement - 3 How can a dragon flap its left wing? Do together dragon flap left wing dragon flap right wing How can a dragon flap its left wing? Do in order Do together dragon close left wing rolls right dragon far left wing rolls right dragon close left wing rolls left dragon far left wing rolls left Is this too detailed? Probably, but you get the picture…

Create an object method Slides 11-14 are actually demonstrated with Alice, but are included in the slide set for later reference.

Drag the code into the editor

The complete method

Calling a method

Your turn! Create the flapLeftWing method Create an analogous flapRightWing method Pause to allow participants to do create these two methods.

Create a flapWings method Demo this slide.

Your turn! Create the flapWings method Create a takeOff method, where the dragon moves up 2 meters and flaps its wings twice What changes will you need to make to the duration= parameter to get the animation working? Pause to let participants create these two methods.

Create a fly method Demo slides 18-19

Saving out a new class Renaming the class Saving it Importing it for a different world

Textbook More information – Alice Storyboards Coding Chapter 2, Section 1 Coding Chapter 2, Section 2 Class-level Methods & Inheritance Chapter 4, Section 3