Wanda Dann Don Slater Classes and Objects Copyright 2012 Wanda Dann, Don Slater All rights reserved.

Slides:



Advertisements
Similar presentations
Alice.
Advertisements

Don Slater Wanda Dann
Class-level Methods and Inheritance MMP 220 Multimedia Programming This adapted material was prepared for students in MMP220 as as part of a curriculum.
Parameters and World-level methods Alice. Our Dragon world The dragon must to take off and fly, to carry the princess.
Don Slater Wanda Dann
Fireworks MX. 2 Lesson 1a—Create Slices & Hotspots n Fireworks allows you to add animation (behaviors) already written in ___________. n However, users.
SETTING UP CAMERA VIEWS LESSON Setting camera views using objects, based on a lesson by Bella. Adventures in Alice Susan Rodger Duke University July 2013.
Stepwise Refinement -- A procedure calls another procedure
Introduction to Programming with Alice.  Learning how to program in the context of animation, simulation, storytelling, and building short games.  Learn.
Alice Programming Step 1:Design Copyright 2011 Wanda Dann, Don Slater, Steve Cooper.
How to Add an Animated Image. Search Google Images for an “animated gif”
Create slices and hotspots Create links in Web pages Create rollovers from slices Create basic animation Add tweening symbol instances to create animation.
Alice: A Visual Introduction to Programming Chapter 1 Part 2.
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,
Unity 3D game IDE 1.  Unity is a multi-platform, integrated IDE for scripting games, and working with 3D virtual worlds  Including:  Game engine ▪
Scene Change - Starter World Samantha Huerta under the direction of Professor Susan Rodger Duke University June 2014.
Princess & Dragon Part 4: Breathing Fire—Adding Effects to Alice By Elizabeth Liang under the direction of Professor Susan Rodger Duke University June.
Copyright © 2012 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with Alice: A Visual Introduction to Programming Third Edition.
Working with Numbers in Alice - Converting to integers and to strings - Rounding numbers. - Truncating Numbers Samantha Huerta under the direction of Professor.
Web Technologies Website Development Trade & Industrial Education
Don Slater Wanda Dann Motion and Rotation Copyright 2012 Wanda Dann, Don Slater All rights reserved.
Using Alice to Introduce Programming Concepts Mr. Craig Ham Technology Coordinator Westminster Schools of Augusta Augusta, GA.
Introduction to Programming with Alice and Java Copyright 2014 Wanda Dann, Don Slater All rights reserved.
Getting a video from the Internet Getting a video from the Internet (1 of 9) 1. Click the Web toolbar button on the Standard toolbar. 1.
Words + picturesPicturesWords Day Day
Motion and Rotation. 3 Dimensional Space  An Alice object o Is located in a 3D world, positioned at (x, y, z) o has 3 dimensions o height, width, depth.
Alice Programming Step 1:Design Copyright 2011 Wanda Dann, Don Slater, Steve Cooper.
Alice 2.0 Introductory Concepts and Techniques Project 1 Exploring Alice and Object-Oriented Programming.
Don Slater Wanda Dann Joint Operations Copyright 2012 Wanda Dann, Don Slater All rights reserved.
Classes and Objects Copyright 2014 Wanda Dann, Don Slater All rights reserved.
Alice: A Visual Introduction to Programming Chapter 1 Part 2.
Lesson 9B Adding sound and Billboards. What is a function? Give an example. How do you create a method? Give an example. What is an event? Give examples.
Don Slater Wanda Dann
Copyright 2011 Wanda Dann, Steve Cooper, Don Slater Alice Workshop Welcome & Introduction.
CS320n – Elements of Visual Programming Lists Mike Scott (Slides 9-1) Thanks to Wanda Dann, Steve Cooper, and Susan Rodger for slide ideas.
Alice Workshop November 2009 By: Kim Glavan New Lenox School Dist #122.
Don Slater Wanda Dann Copyright 2012 Wanda Dann, Don Slater All rights reserved.
3D Animation Concepts CS0007 George Novacky. Overview Creating a new world (slides 5 – 13) Remembering camera position (slides )
Alice 3.0 A Guided Tour Mike R-D YRDSB. Agenda General Walkthrough of Alice 3.0 Loops, Variables, Threads Methods / Properties Arrays Misc.
Copyright 2011 Wanda Dann, Steve Cooper, Don Slater Alice Workshop More Precise Positioning Camera Marker One-shot methods Saving a world.
Classes, Objects, and World-level Methods MMP 220 Multimedia Programming This adapted material was prepared for students in MMP220 as as part of a curriculum.
Review for test! Alice Chapter 1&2 Test is tomorrow! - March 26 th March 25th.
Copyright 2008 Wanda Dann, Steve Cooper, Don Slater Alice Workshop Functions, Loops, and Parameters.
Programming: Simple Control Structures MMP 220 Multimedia Programming This adapted material was prepared for students in MMP220 as as part of a curriculum.
Copyright 2008 Wanda Dann, Steve Cooper, Don Slater Alice Workshop Variables & Conditions.
World-level Classes Chapter 6 Part 2. Programs Grow Program code grows larger over time This makes it more difficult to read and process the code in our.
Chapter 8 HTML Editors. Copyright © 2006 Pearson Addison-Wesley. All rights reserved. 8-2 Text Editors Text editors don't have word processing features.
Parameters MMP 220 Multimedia Programming This adapted material was prepared for students in MMP220 as as part of a curriculum redesign project funded.
Joint Motion Copyright 2014 Wanda Dann, Don Slater All rights reserved.
Wanda Dann Don Slater Methods Panel & Object Tree Copyright 2012 Wanda Dann, Don Slater All rights reserved.
Headshots in Alice Duke University Professor Susan H. Rodger Gaetjens Lezin July 2008.
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.
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.
Beginning Animation. Storyboard An Invitation to Dinner 1.Marlin and Dory (two small fish) are swimming and talking. 2.A shark (Bruce) swims up behind.
An Introduction to Programming with Alice Text and Sound in Alice Worlds.
Classes and Objects Copyright 2014 Wanda Dann, Don Slater All rights reserved.
Art for New Media TO DO today: 1 - Saving your work, using with Dreamweaver CSS style sheets, externally linked Work on Photoshop Animation.
Chapter 4 - Finishing the Crab Game
Alice 3 Using the Alice 3.1 Interactive Development Environment (IDE)
Making Objects Move in Unison: Using Lists
Programming using Alice 3
Making Objects Move in Unison: Using Lists
Introducing Alice.
Using Objects in Alice.
Making Procedural Methods
Arrays
Animation Programs: Scenarios and Storyboards
Classes and Objects Wanda Dann Don Slater
Two Layer in scene. A layer is the transparent layer.
Presentation transcript:

Wanda Dann Don Slater Classes and Objects Copyright 2012 Wanda Dann, Don Slater All rights reserved

 Alice Environment  Scene Editor  Code Editor  Classes  Objects Copyright 2012 Wanda Dann, Don Slater All rights reserved

 Each 3D model is a pre-written class  In Alice, a class defines ◦ A plan for constructing an object in an Alice scene ◦ Actions an object of that class can perform Copyright 2012 Wanda Dann, Don Slater All rights reserved

 An Alice class is similar to an architect's blueprint for building a house. ◦ Not the actual house -- just a plan for constructing a house, based on a sketch of what it will look like. Copyright 2012 Wanda Dann, Don Slater All rights reserved

 An instance of a class is an object  The following slides illustrate how to create (construct) an object in an Alice scene. Copyright 2012 Wanda Dann, Don Slater All rights reserved

Where the program for the animation or game is written Code Editor Copyright 2012 Wanda Dann, Don Slater All rights reserved Code editorScene view Methods panel Control tiles

Click on Setup Scene to go to the Scene Editor Go to Scene Editor Copyright 2012 Wanda Dann, Don Slater All rights reserved

Scene Editor Copyright 2012 Wanda Dann, Don Slater All rights reserved Where the scene for the animation or game is created Scene setup panel Gallery panel

Gallery folders In the gallery, classes are organized in folders. Each class folder is like a drawer in a file cabinet, where all classes of the same type are stored. Flyer (has wings and can fly) Biped (walks on 2 legs) Quadraped (walks on 4 legs) Swimmer (lives in water, swims) Copyright 2012 Wanda Dann, Don Slater All rights reserved

Select the class folder for the type of object that you wish to add to the scene. In this example, we click on Quadruped. Select class folder Copyright 2012 Wanda Dann, Don Slater All rights reserved

Within the Quadruped folder are images of each class in this folder. Each image is labeled with the name of the class and shows a preview for an instance of that class. Quadruped – walks on 4 legs Copyright 2012 Wanda Dann, Don Slater All rights reserved

Click on the image to select one of 5 versions of the BabyDragon class. Select class Copyright 2012 Wanda Dann, Don Slater All rights reserved 5 different BabyDragon classes

Click on the image to create a new BabyDragon object Select class Copyright 2012 Wanda Dann, Don Slater All rights reserved

Enter a name for the new object you are constructing from the BabyDragon class Adding a Camel object to a Scene

We have constructed an instance of the BabyDragon class and identified it with the name fergie. We say an instance of a class is an object. Instance/object Copyright 2012 Wanda Dann, Don Slater All rights reserved

An instance of an object may be added to a scene by clicking and dragging the image into the scene view. Instance construction - Alternative

Instances of same class Can have more than one instance of the same class. Example: fergie and bert are two instances of the BabyDragon class.