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

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

Texture Maps Alice Project 2008 Duke University Professor Susan H. Rodger Gaetjens Lezin July 2008.
Alice.
Princess & Dragon Part 2: Teaching a Dragon to Fly—Methods & Properties By Elizabeth Liang under the direction of Professor Susan Rodger Duke University.
Don Slater Wanda Dann
Scene changes By Deborah Nelson Duke University Under the direction of Professor Susan Rodger July 2008.
Skater World: Part Four By Deborah Nelson Duke University Under the direction of Professor Susan Rodger June 2009.
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.
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,
Alice Learning to program: Part 1 Scene Setup and Starting Animation by Ruthie Tucker and Jenna Hayes Under the direction of Professor Susan Rodger Duke.
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.
1 Quiz Template: Click on the match By Deborah Nelson Duke University Under the direction of Professor Susan Rodger July 2009.
Making a Book Report in Alice by Jenna Hayes Under the direction of Professor Susan Rodger Duke University, June 2010.
Working with Numbers in Alice - Converting to integers and to strings - Rounding numbers. - Truncating Numbers Samantha Huerta under the direction of Professor.
Adobe FlashProfessional CS5 – Illustrated
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.
Adobe Flash CS4 – Illustrated Unit C: Using Symbols and the Library Panel.
Alice Learning to program: Part Three Camera Control, Invisibility, and 3-D Text By Ruthie Tucker and Jenna Hayes, Under the direction of Professor Rodger.
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.
3–D Helium Molecule Tutorial Alice Project Duke University Professor Susan H. Rodger Gaetjens Lezin June 2008.
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.
Alice: A Visual Introduction to Programming Chapter 1 Part 2.
Web Games Programming An Introduction to Unity 3D.
1 Enter rotation angle Click Rotate for rotate and flip options.
Creating Buttons – Lesson 51 Creating Buttons Lesson 5.
Scene changes By Deborah Nelson Duke University Under the direction of Professor Susan Rodger June
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.
Views Revit® Architecture CHAPTER OBJECTIVES Understand and use Floor Plan and Reflected Ceiling Plan (RFC) views. Learn how to create Elevation.
LATTICE TECHNOLOGY, INC. For Version 10.0 and later XVL Web Master Tutorial For Version 10.0 and later.
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.
line.net/ okpop.com/bar elythereflashin dex.html.
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.
Derived from Kirill Muzykov’s Rocket Mouse Tutorial WakeUpAndCode.com.
Introduction to Alice Web Design Section 8-2 Alice is named in honor of Lewis Carroll’s Alice in Wonderland.
Skater World: Part Four By Deborah Nelson Duke University Under the direction of Professor Susan Rodger June 1, 2009.
Wanda Dann Don Slater Classes and Objects Copyright 2012 Wanda Dann, Don Slater All rights reserved.
Chapter 8 HTML Editors. Copyright © 2006 Pearson Addison-Wesley. All rights reserved. 8-2 Text Editors Text editors don't have word processing features.
Programming in Alice IT-IDT-9 Design, develop, test and implement programs using visual programming. 9.1 Utilize drag and drop software to develop programs.
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.
UFCFSU-30-13D Technologies for the Web An Introduction to Unity 3D.
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.
Classes and Objects Copyright 2014 Wanda Dann, Don Slater All rights reserved.
Adobe Flash Professional CS5 – Illustrated Unit C: Using Symbols and the Library Panel.
The Alice Scene Editor.
Getting started in Alice
Alice 3 Using the Alice 3.1 Interactive Development Environment (IDE)
Making Objects Move in Unison: Using Lists
Introduction to Alice Alice is named in honor of
Programming using Alice 3
Introduction to Programming
Adding and Manipulating Objects
Making Objects Move in Unison: Using Lists
Using Objects in Alice.
Making Procedural Methods
Classes and Objects Wanda Dann Don Slater
Learning to Program: Part 3 Camera Control, Invisibility and 3-D Text
Headshots in Alice Duke University Professor Susan H. Rodger
Presentation transcript:

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

 An Alice World  Classes  Objects

Alice World An Alice project creates a virtual world. The primary component of a world is the camera view, as shown in the Scene Editor.

this  The current scene is known as “this” scene

Components of a scene  A scene always has a camera and a ground surface (which may be grass, sand, rocks, or even water)  Other objects may be added to a scene.

Where the program for the animation or game is written Code Editor

Click on Setup Scene to go to the Scene Editor Go to Scene Editor

Scene Editor Where the scene for the animation or game is created Gallery panel, organized by class hierarchy

Video: 02. Gallery Tour An Overview of the Alice 3 Gallery and Classes

 Each 3D model is a pre-written class  In Alice, a class defines ◦ A plan for constructing a new object in an Alice scene ◦ Actions an object of that class can perform

 An Alice class is similar to an architect's blueprint for building a house. ◦ Not the actual house -- just a plan for constructing a new house, based on a sketch of what it will look like.

 An instance of a class is an object  The following slides illustrate how to create (construct) a new object in an Alice scene.

Gallery panels  The gallery tabs provide alternate organization schemes

Class Hierarchy In this panel, classes are organized based on how objects move around in a scene. 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)

Video: 03. Adding Objects An Overview adding an object to an Alice Project

Select the class folder for the type of object that you wish to add to the scene. In this example, we click on Quadruped classes. Select class folder

Within the Quadruped folder are classes of objects that move around on 4 legs. Each image is labeled with the name of the class and shows a preview for a new object of that class. Quadruped – walks on 4 legs

Click on the image to select one of 5 versions of objects that can be created by the DragonBaby class. Select class 10 different versions of DragonBaby objects

The DragonBaby class has 10 different paint resources. Click on one of the images to select one of the paint resources. Alice will automatically create a new DragonBaby object and paint it with the selected paint resource. Select class

Enter a name for the new BabyDragon object Adding a DragonBaby object to a Scene

We have constructed a new instance of the BabyDragon class and identified it with the name fergie. We say an instance of a class is an object. Instance/object

A new object may be added to a scene by clicking and dragging the image into the scene. The dialog box for naming the object will still pop up, in the same way as before. Alternate technique

Objects of the same class A scene may have more than one object of the same class. Example: fergie and bert are two different objects (instances) of the same BabyDragon class. Different objects have different names and may have different colors, sizes, and other properties.