Presentation is loading. Please wait.

Presentation is loading. Please wait.

Chapter 1: Introduction to Alice and Objects

Similar presentations


Presentation on theme: "Chapter 1: Introduction to Alice and Objects"— Presentation transcript:

1 Chapter 1: Introduction to Alice and Objects
Starting Out with Alice: A Visual Introduction to Programming Third Edition

2 Learning to Program with Alice
1.3 Learning to Program with Alice Alice uses objects Tent Soldier Princess Objects perform actions Turn Move Fly Wave

3 1.3 The Alice System

4 1.3 PLAY

5 The Alice Environment 1.3 World View Toolbar Object Tree Details Panel
Events Editor World View Toolbar Object Tree Details Panel Method Editor

6 1.4 Object Properties Object Selected Change Properties

7 Methods Set of programming statements executed by object.
1.4 Methods Set of programming statements executed by object. Methods commonly result in object performing action. My first method

8 NOTE: how objects are named! This is called “camel case”
1.4 Methods Objects made of other objects Snowman made of: head topHat leftEye rightEye carrotNose mouth leftArm rightArm bottom NOTE: how objects are named! This is called “camel case”

9 Methods Each object can also be manipulated with methods.
1.4 Methods Each object can also be manipulated with methods. Objects and “sub” objects can Move Turn Roll Say…

10 The World is My…object? Contains all other objects
1.4 The World is My…object? Contains all other objects Also has its own properties Atmosphere color Lighting Fog

11 Alice has Class(es)! Objects are created from classes.
1.5 Alice has Class(es)! Objects are created from classes. Class set of specifications that describe a particular “type” of object. Each item found in the Gallery is a class. Each time the class is used, it is an instance of that class. Gallery is a collection of different object types (animals, beach, people, etc.). Two galleries are used: Local gallery (stored on computer) Web gallery (maintained by creators of Alice)

12 Class Instance in Alice
1.5 Class Instance in Alice Class: Chicken Instance: Chicken1 Chicken2 Each instance has its own properties, methods, functions

13 Tasks Compete the following Ch1 Tutorials ….
See the scanned Textbook files on Mr. Smith’s website for pages needed for each task. Tutorial 1-2 – Creating a world and adding objects pages 19-30 Tutorial 1-3 – Moving the camera in 3d space, pages 34-35

14 3D Objects and the Camera
1.6 3D Objects and the Camera Alice world and objects are three-dimensional Height Width } These dimensions are part of 2D objects Depth

15 1.6 3D Movement Forward is perceived as the object getting larger as it gets closer to us. Backward is perceived as the object getting smaller as it gets farther away from us. Motion is based on OBJECT’s perspective…our left is the Coach’s right

16 Tasks Compete the following Ch1 Tutorials ….
See the scanned Textbook files on Mr. Smith’s website for pages needed for each task. Tutorial 1-4 – Manipulating objects in 3d space, pages 40-43 Tutorial 1-5 – Manipulating subpart objects, pages 43-46

17 End Of Chapter Programs…
Access the scanned textbook pages or get a textbook from the cabinet. Go to pages 54-56 Complete 5 of the exercise from 1-7 and 4 exercises from #8-#13 to showcase chapter 1 skills in Alice.

18 End Of Chapter Program Design
Use one of the templates for your ground color and setting(grass, sand, etc) Create an accident scene that promotes “Don’t Text and Drive” Use the 3-D Text object-scroll to the far right of gallery to enter the text “Don’t Text and Drive” Include a police car, fire truck, people and other objects to create your scene.


Download ppt "Chapter 1: Introduction to Alice and Objects"

Similar presentations


Ads by Google