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

Slides:



Advertisements
Similar presentations
Texture Maps Alice Project 2008 Duke University Professor Susan H. Rodger Gaetjens Lezin July 2008.
Advertisements

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.
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.
Introduction to Alice Web Design Section 8-2 Alice is named in honor of Lewis Carroll’s Alice in Wonderland.
Create slices and hotspots Create links in Web pages Create rollovers from slices Create basic animation Add tweening symbol instances to create animation.
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,
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.
Adobe FlashProfessional CS5 – Illustrated
Programming Alice Alice is named in honor of Lewis Carroll’s Alice in Wonderland.
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.
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.
Web Games Programming An Introduction to Unity 3D.
Creating Buttons – Lesson 51 Creating Buttons Lesson 5.
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.
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.
What is Alice? Alice is an innovative 3D programming environment that makes it easy to create an animation for telling story, playing an interactive game,
Wanda Dann Don Slater Classes and Objects Copyright 2012 Wanda Dann, Don Slater All rights reserved.
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.
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.
The Alice Scene Editor.
Skater World: Part Four
Secrets of the Process Modeler
Setting Up the Initial Scene
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.
Media Pembelajaran dengan Alice 3D
ATS Application Programming: Java Programming
Getting started in Alice
Sounds.
Obj: Introduction to Alice
Alice 3 Using the Alice 3.1 Interactive Development Environment (IDE)
Chapter 4 Adding Images.
Making Objects Move in Unison: Using Lists
Introduction to Alice Alice is named in honor of
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.
Introduction to Alice Alice is named in honor of
Making Procedural Methods
Princess & Dragon Part 2: Teaching a Dragon to Fly—Methods & Properties By Elizabeth Liang under the direction of Professor Susan Rodger Duke University.
Introduction to Alice Alice is named in honor of
Classes and Objects Wanda Dann Don Slater
Introduction to Alice Alice is named in honor of
Learning to Program: Part 3 Camera Control, Invisibility and 3-D Text
Headshots in Alice Duke University Professor Susan H. Rodger
Professor Susan Rodger
Introduction to Alice Alice is named in honor of
Adding Media to Courses
Introduction to Alice Alice is named in honor of
Presentation transcript:

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

 An introductory programming course  Learning how to program in the context of animation, simulation, storytelling, and building short games.  Learn fundamental programming concepts in Alice ◦ A rapid prototyping tool ◦ Create “rough drafts” of animations, games simulations, and film-like stories Course Description

Video: 01. A Brief Tour An Overview of Alice 3

 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 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.