Introduction to Programming with Alice.  Learning how to program in the context of animation, simulation, storytelling, and building short games.  Learn.

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

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.
Coloring Randomly: Random Selection in Alice By Jenna Hayes under the direction of Professor Susan Rodger Duke University July 2008.
Skater World: Part Four By Deborah Nelson Duke University Under the direction of Professor Susan Rodger June 2009.
© by Pearson Education, Inc. All Rights Reserved.
Fall 2008ACS-1805 Ron McFadyen1 ACS-1805 Introduction to Programming using Alice 2.0 Ron McFadyen Course OutlineMcFadyenOutline.
What is Alice? Graphical Programming Environment and Language Learn object oriented programming using 3 dimensional objects and a story telling approach.
Fall 2009ACS-1805 Ron McFadyen1 ACS-1805 Introduction to Programming using Alice.
Alice: A Visual Introduction to Programming Chapter 1 Part 2.
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.
Animated Charting Using the Alice Bar Chart Template World By Elizabeth Liang under the direction of Professor Susan Rodger Duke University December 2010.
Working with Numbers in Alice - Converting to integers and to strings - Rounding numbers. - Truncating Numbers Samantha Huerta under the direction of Professor.
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.
| | Tel: | | Computer Training & Personal Development Microsoft Office PowerPoint 2007 Expert.
CSC1401: Introductory Programming Steve Cooper
Programming with Alice Computing Institute for K-12 Teachers Summer 2011 Workshop.
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 2.0 Introductory Concepts and Techniques Project 1 Exploring Alice and Object-Oriented Programming.
Classes and Objects Copyright 2014 Wanda Dann, Don Slater All rights reserved.
Changing Color, Using Text Objects, and Random Selection in Alice By Jenna Hayes Under the direction of Professor Susan Rodger Duke University, July 2008.
Chapter One An Introduction to Visual Basic 2010 Programming with Microsoft Visual Basic th Edition.
Alice: A Visual Introduction to Programming Chapter 1 Part 2.
Web Games Programming An Introduction to Unity 3D.
Summer 2011 Project Zimmerman.  After discussion and initial introduction to Alice, students will receive another overview and use existing code to create.
Hello World in the Forte IDE An introduction to the Forte IDE (integrated development environment) writing the classic “Hello World” program in Java.
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.
Game Maker – Getting Started What is Game Maker?.
3D Animation Concepts CS0007 George Novacky. Overview Creating a new world (slides 5 – 13) Remembering camera position (slides )
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.
The Essentials of Alice Mrs. Jayne Slease SBMS CTE Computer Science and Animation Credit to Duke Students under the direction of Professor Susan Rodger.
Getting Started with Word & Saving Guided Lesson.
Review for test! Alice Chapter 1&2 Test is tomorrow! - March 26 th March 25th.
Class-level Methods and Inheritance Alice. Class-level Methods Some actions are naturally associated with a specific class of objects. Examples A person.
Introduction to BIM Module 08 – Cloud Rendering. Introduction to BIM In this lesson, students explore the potential of infinite computing using Autodesk®
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.
Skater World: Part Four By Deborah Nelson Duke University Under the direction of Professor Susan Rodger June 1, 2009.
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.
Chapter 8 HTML Editors. Copyright © 2006 Pearson Addison-Wesley. All rights reserved. 8-2 Text Editors Text editors don't have word processing features.
CompSci 4 Chap 4 Sec 3 Sept 23, 2010 Prof. Susan Rodger.
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.
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.
Presenter: Carol Liss Timberlane Regional Middle School 6 th and 7 th grade Tech. Educator Co presenters:
Alice in Action with Java Chapter 1 Getting Started with Alice.
Class-level Methods and Inheritance Alice. Class-level Methods Some actions are naturally associated with a specific class of objects. Examples A person.
Introducing Scratch Learning resources for the implementation of the scenario
Classes and Objects Copyright 2014 Wanda Dann, Don Slater All rights reserved.
Introduction to Programming and App Inventor. Introduction What is a computer program? Introducing App Inventor Getting hands on with App Inventor.
Media Pembelajaran dengan Alice 3D
Getting started in Alice
The Alice Interface.
Programming using Alice 3
Adding and Manipulating Objects
Class-level Methods Alice.
CIS16 Application Development Programming with Visual Basic
Alice in Action with Java
Making Procedural Methods
Citation Map Visualizing citation data in the Web of Science
Classes and Objects Wanda Dann Don Slater
Class-level Methods and Inheritance
Presentation transcript:

Introduction to Programming with Alice

 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 Description

 Software (available online, freeware) ◦ Alice 3.1 ◦ Java 1.7 or laterwill be used later ◦ Dr. Java All are available free online. See course description for instruction if you want to download them at home. Tools

A Brief Tour An Overview of Alice 3

Start Alice 3 This screen should appear. Select whichever template you like.

This screen should now appear Code editorScene view Methods panel Control tiles

Methods Panel Methods panel Code editorScene view Methods panel Control tiles The methods panel contains a set of tiles. Each tile describes an action an object can perform (or have performed on it)

Where the program for the animation or game is written Code Editor Code editorScene view Methods panel Control tiles

Where the world is set up for the animation or game. Scene View Code editorScene view Methods panel Control tiles

Alice World An Alice project creates a virtual world. The primary component of a world is a scene, 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.

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 Scene setup panel Gallery panel, organized by class hierarchy

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)

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 10 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 DragonBaby class and identified it with the name fergie. We say an instance of a class is an object. Instance/object

Naming Conventions Meaningful names Most languages do not allow spaces in names so we will not use them

Naming Conventions Pascal Case Each word starts as upper case Used for classes Ex. IceSkater, DragonBaby Camel Case First word lower case, other words upper case Used for objects – instances of a class, and methods Ex. blackBeauty, fergieTheBabyDragon

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 DragonBaby class. Different objects have different names and may have different colors, sizes, and other properties.

Scene Editor -- Object tree In the scene editor, Alice generates an object tree to show a list of all objects in this scene. Click on Edit Code to return to the Code Editor

Code Editor – Object list In the code editor, Alice generates a corresponding list of objects in a pull-down menu. Object menu Object tree

Ancestry Each object in the scene is an instance of a class that belongs to a family of classes. The class’s ancestry is shown in the methods panel.

Inheritance: Order DragonBabyQuadruped Ancestry can be ordered from specific to most generic (similar to youngest to oldest).

 The ancestry list tells you that fergie is an instance of the DragonBaby class…  inherits all properties and methods of the Quadruped class Why do you care?

In computer science, we often use a more abstract representation of class inheritance, known as a class hierarchy. Model |-JointedModel ├ SQuadruped ├ Quadruped ├ DragonBaby Class hierarchy Note that fergie is NOT specified in the class hierarchy because fergie is an object, NOT a class. Not shown in Methods Panel

Now you have time to play Create a world and add some objects Explore the gallery to see what classes are available Check out any other features of the scene editor