Alice in Action with Java Chapter 1 Getting Started with Alice.

Slides:



Advertisements
Similar presentations
Interaction Design: Visio
Advertisements

Step-by-Step: Add a Graphical Hyperlink USE the Special Events Final presentation that is still open from the previous exercise. 1.Go to slide 4, and click.
Alice.
CS0004: Introduction to Programming Visual Studio 2010 and Controls.
Introduction to Alice Alice is named in honor of Lewis Carroll’s Alice in Wonderland Modified by Serita Scott Further modified by Suzy Crowe.
1 Alice: Beyond the Basics Steve Cooper Michelle Venable-Foster Barbara Ericson May 2007.
1 Alice: Beyond the Basics Steve Cooper Michelle Venable-Foster Barbara Ericson Aug 2009.
Chapter 1 Databases and Database Objects: An Introduction
Fall 2008ACS-1805 Ron McFadyen1 ACS-1805 Introduction to Programming using Alice 2.0 Ron McFadyen Course OutlineMcFadyenOutline.
A Guide to Oracle9i1 Introduction To Forms Builder Chapter 5.
FIRST COURSE Getting Started with Microsoft Office 2007.
Fall 2009ACS-1805 Ron McFadyen1 ACS-1805 Introduction to Programming using Alice.
Macros Tutorial Week 20. Objectives By the end of this tutorial you should understand how to: Create macros Assign macros to events Associate macros with.
Chapter 2: The Visual Studio.NET Development Environment Visual Basic.NET Programming: From Problem Analysis to Program Design.
Classes, Objects, and World-level Methods Alice. Programming in Alice© 2006 Dr. Tim Margush2 Class / Object Class A template describing the characteristics.
Alice: A Free 3D Animation World for Teaching Programming Barbara Ericson Georgia Institute of Technology Oct 2005.
Chapter 5 Using Business Information Sets
Introduction to Alice Alice is named in honor of Lewis Carroll’s Alice in Wonderland.
Chapter 9 Macros, Navigation Forms, PivotTables, and PivotCharts
Chapter 9 Introduction to ActionScript 3.0. Chapter 9 Lessons 1.Understand ActionScript Work with instances of movie clip symbols 3.Use code snippets.
01-Intro-Object-Oriented-Prog-Alice1 Barb Ericson Georgia Institute of Technology Aug 2009 Introduction to Object-Oriented Programming in Alice.
Chapter 10 Creating a Template for an Online Form
Programming Logic Program Design. Objectives Steps in program development Algorithms and Pseudocode Data Activity: Alice program.
Advanced Forms Lesson 10.
Programming Alice Alice is named in honor of Lewis Carroll’s Alice in Wonderland.
Chapter 1 Databases and Database Objects: An Introduction
XP New Perspectives on Microsoft Office FrontPage 2003 Tutorial 4 1 Microsoft Office FrontPage 2003 Tutorial 4 – Using Shared Borders and Themes.
Programming with Alice Computing Institute for K-12 Teachers Summer 2011 Workshop.
Graphics Movies & Games. Jump In! Feeling sleepy and stupid… Extract the Alice from the zip archive and copy it to C:\Programs.
Microsoft Office Word 2013 Expert Microsoft Office Word 2013 Expert Courseware # 3251 Lesson 3: Customizing Document Elements.
Alice 2.0 Introductory Concepts and Techniques Project 1 Exploring Alice and Object-Oriented Programming.
Microsoft Publisher 2010 Chapter 4 Creating a Custom Publication from Scratch.
Interaction Design Interaction Design - Joan Cahill - Visio Interaction Design: Visio.
© 2010 Delmar, Cengage Learning Chapter 3: Working with Symbols and Interactivity.
The Very Basics of Alice: A Simple Overview 6 th & 7 th Grade Tech Apps.
Computing Fundamentals Module Lesson 3 — Changing Settings and Customizing the Desktop Computer Literacy BASICS.
Chapter One An Introduction to Visual Basic 2010 Programming with Microsoft Visual Basic th Edition.
Microsoft Visual Basic 2012 CHAPTER THREE Program Design and Coding.
CS329e – Elements of Visual Programming Implementing Programs Mike Scott (Slides 2-2)
Alice Tutorial: Overview and Concepts Wayne Summers Columbus State U. 11/17/06.
Chapter 7 Creating a Newsletter with a Pull-Quote and Graphics
Adobe Flash CS3 Revealed Chapter 3 - WORKING WITH SYMBOLS AND INTERACTIVITY.
Microsoft Publisher 2010 Chapter 7 Advanced Formatting and Merging Publications with Data.
Introduction to Alice Alice is named in honor of Lewis Carroll’s Alice in Wonderland Slides Credit: Joel Adams, Alice in Action CS120 Lecture August,
1 CSC 221: Computer Programming I Spring 2008 Objects and classes: a broad view  software objects, classes, object-oriented design  BlueJ IDE, compilation.
FIRST COURSE PowerPoint Tutorial 2 Applying and Modifying Text and Graphic Objects.
Review for test! Alice Chapter 1&2 Test is tomorrow! - March 26 th March 25th.
Methods (part 2) Alice In Action, Ch 2 Slides Credit: Joel Adams, Alice in Action CS 120 Lecture 03 4 September 2012.
Introduction to Alice Web Design Section 8-2 Alice is named in honor of Lewis Carroll’s Alice in Wonderland.
Alice: A Free 3D Animation World for Teaching Programming.
Using Alice.  Alice is visual  Alice is object-oriented (some might say object- based)  Alice eliminates the need to debug syntax errors  Alice introduces.
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.
Methods (part 1) Alice In Action, Ch 2 Slides Credit: Joel Adams, Alice in Action CS120 Lecture August 2012.
PowerPoint Basics Tutorial 2: A Slide Show In this tutorial you’re going to create a presentation from scratch. You will have to keep this presentation.
1 Chapter 15 Creating a Presentation. Practical Computer Literacy, 2 nd edition Chapter 15 2 What’s inside and on the CD? In this chapter, you will learn.
Alice in Action with Java Chapter 2 Methods. Alice in Action with Java2 Objectives Build world-level methods to help organize a story into scenes and.
Chapter 11 Enhancing an Online Form and Using Macros Microsoft Word 2013.
Creating a Presentation
Getting started in Alice
The Alice Interface.
Programming Logic Alice.
Learning Java with Alice 3.0 Game Design Kathy Bierscheid
Classes, Objects, and World-level Methods
Alice in Action with Java
Alice in Action with Java
Alice: Beyond the Basics
Alice: A Free 3D Animation World for Teaching Programming
Introduction to Object-Oriented Programming in Alice
Alice: A Free 3D Animation World for Teaching Programming
Presentation transcript:

Alice in Action with Java Chapter 1 Getting Started with Alice

Alice in Action with Java2 Objectives Design a simple Alice program Build a simple Alice program Animate Alice objects by sending them messages Use the Alice doInOrder and doTogether controls

Alice in Action with Java3 Objectives (continued) Change an object’s properties from within a program Use Alice’s quad view to position objects near one another

Alice in Action with Java4 Getting and Running Alice Alice software is freely distributed Downloading Alice –Go to the website: –Click the link Get Alice 2.0 –Click download link specific to your operating system –Save Alice.zip (or Alice.dmg ) to your PC Installing and running Alice –Extract Alice from Alice.zip (or Alice.dmg ) file –Create desktop shortcut (alias) to Alice.exe –Double-click Alice icon to launch Alice application

Alice in Action with Java5 The Alice Tutorials Four interactive tutorials teach the basics of Alice Work through tutorials before continuing in chapter Access tutorials from Tutorial tab of startup dialog Developing programs involves art and science Active learning: implementing designs as you read

Alice in Action with Java6 The Alice Tutorials (continued)

Alice in Action with Java7 Program Design Programming in Alice is similar to filmmaking Filmmaking terms –Treatment: short prose version of a film –Screenplay: written version of film that includes dialog –Scene: a piece of the story usually set in one location –Shot: part of scene told with camera in one position –Viewpoint: perspective of camera for a given shot –Storyboard: drawing that provides blueprint for a shot

Alice in Action with Java8 User Stories Prose versions of programs from user perspective Critical components of a user story –A basic description of events taking place in the story –Nouns in the story (which correspond to objects) –Verbs in the story (which correspond to actions) –Chronological flow of actions (algorithm) User story is the foundation of good software The user story plays a role similar to a screenplay Guideline: number actions according to their flow

Alice in Action with Java9 User Stories (continued)

Alice in Action with Java10 Storyboard-Sketches Storyboard –Detailed drawing of a shot –Arrows show movements of characters or camera Collection of storyboards helps actors visualize film Storyboard-sketch: storyboard for application screen Components of a storyboard-sketch: –Object’s position (location) –Object’s pose (position of limbs, if it has any) –Object’s orientation (direction it is facing) –Camera’s viewpoint

Alice in Action with Java11 Storyboard-Sketches (continued)

Alice in Action with Java12 Transition Diagrams Link the multiple storyboard-sketches In a movie, transition diagram is a linear sequence

Alice in Action with Java13 Transition Diagrams (continued)

Alice in Action with Java14 Programming Implementation in Alice Templates provide a basic world environment Sample program is based on the “grass” Template Areas in the Alice window –Menus: includes File, Edit, Tools, and Help –Buttons: includes Play, Undo, and Redo –Object tree: lists all world objects; e.g., ground –Details area: includes properties, methods, functions –World window: displays graphic objects in a program –Editing area: includes editing space and controls –Events area: contains actions responding to events

Alice in Action with Java15 Programming Implementation in Alice (continued)

Alice in Action with Java16 Program Style Change program display styles in Preferences How to access Preferences dialog box –Click the Edit menu –Click the Preferences choice Selecting a display style in Preferences dialog –Click next to “display my program” in General tab –Select a style Style recommended for course: Java Style in Color

Alice in Action with Java17 Program Style (continued)

Alice in Action with Java18 Adding Objects to Alice Class: blueprint for an object How to populate Alice world with objects –Click Add Objects button in world window –Locate class specifying the object in the Alice Gallery –Right-click class and select “Add instance to world” Objects in sample world: aliceLiddell and whiteRabbit Naming conventions for objects and classes –Class: capitalize all words; e.g., AliceLiddell –Object: capitalize all but first word; e.g., aliceLiddell Objects can be renamed from the object tree

Alice in Action with Java19 Adding Objects to Alice (continued)

Alice in Action with Java20 Accessing Object Subparts Bounding box: encloses any Alice object Impact of selecting an object in the object tree –Bounding box is drawn around object in world window –Details area adapts to the selected object First action to program: Alice turns head to user First set of programming steps –Select + sign next to aliceLiddell in object tree –Select + sign next to neck subpart –Select head (bounding box is drawn, details change) –Drag doInOrder control to top of editing window

Alice in Action with Java21 Accessing Object Subparts (continued)

Alice in Action with Java22 Accessing Object Subparts (continued)

Alice in Action with Java23 Sending Messages Programs rely on sending messages to objects Method: behavior-producing message Programming Alice’s head to turn –Select Alice Liddell’s head in the object tree –Scan through the methods in the details area –Click on pointAt() –Drag pointAt() to the editing area and drop it –Specify camera as the target

Alice in Action with Java24 Sending Messages (continued)

Alice in Action with Java25 Testing and Debugging Bug: error interfering with normal program functions Debugging: process of removing program bugs Click the Play button to test Alice Liddell application –Alice Liddell’s head will turn toward the user

Alice in Action with Java26 Testing and Debugging (continued)

Alice in Action with Java27 Coding the Other Actions say() message –Displays dialog for an object –Text can be customized by selecting other… Task: complete first Alice Liddell application –Add Alice Liddell’s initial greeting –Point the white rabbit to the user –Have Alice Liddell introduce herself –Have the white rabbit introduce himself Customize messages by selecting from more… –Example: adjust fontSize of message text to 30

Alice in Action with Java28 Coding the Other Actions (continued)

Alice in Action with Java29 Statements Statement: a line or control structure in a program Computer program is a collection of statements Basic format of a line in a program –object.message(value); more... Control structures manage other statements –Example: doInOrder contains other statements

Alice in Action with Java30 The Final Action Sequential execution –Actions are performed consecutively –Example: actions executed in doInOrder structures Simultaneous execution –Actions are performed in parallel –Example: actions performed in doTogether structure Finishing the first program –Add doTogether control structure to application –Send say( ) to aliceLiddell and whiteRabbit –Message value: Welcome to our world

Alice in Action with Java31 The Final Action (continued)

Alice in Action with Java32 Final Testing First set of actions are performed separately Final actions are performed simultaneously

Alice in Action with Java33 Final Testing (continued)

Alice in Action with Java34 The Software Engineering Process A methodical approach to constructing programs Two parts: design and implementation and testing Elements of software design –Write the user story –Organize nouns and verbs into an algorithm –Create storyboard-sketches and the transition diagram Elements of software implementation and testing –For each noun in the story, add an object to Alice world –Match message to verb and send message to object –Test message to determine if it produces desired action

Alice in Action with Java35 Alice’s Details Area Reflects attributes and behaviors of selected object Three panes: properties, methods, and functions

Alice in Action with Java36 The properties Pane Includes attributes such as color, opacity, visibility Change values to alter object appearance/behavior Example: make the White Rabbit disappear –Click opacity in the properties pane –Drag opacity to the editing area –Set opacity to 0 –Change the duration to 2 seconds How a program changes when a property is altered –New message is added to editing area –In the example above, a set () message is added

Alice in Action with Java37 The properties Pane (continued)

Alice in Action with Java38 The methods Pane Provides a list of behavior-generating messages Objects respond to set of predefined basic messages –Example: the resize( ) message Some classes provide advanced methods –Examples: Frog, Monkey, Penguin You can build complex animations using methods

Alice in Action with Java39 The methods Pane

Alice in Action with Java40 The functions Pane Provides list of information returning messages Differentiate functions from methods –Functions return data, messages produce behavior Type of information returned by functions –Proximity to another object –Size in terms of height, width, or depth –Spatial relation to another object –Point of view (position and orientation in the world) –Subparts world object responds to different set of functions

Alice in Action with Java41 The functions Pane (continued)

Alice in Action with Java42 Alice Tip: Positioning Objects Using Quad View Actions performed after pressing ADD OBJECTS –Navigate the Alice Gallery –Locate classes –Use classes to add objects to the world Two views: single view and quad view quad view –World window –View from the top –View from the right –View from the front

Alice in Action with Java43 Alice Tip: Positioning Objects Using Quad View (continued)

Alice in Action with Java44 Summary Alice: software tool used to create virtual worlds User story: prose description of program form the user’s point of view Shot: component of a scene with the camera at one viewpoint Algorithm: flow of actions that solves a problem Storyboard-sketch: drawing of a distinct screen in a computer application

Alice in Action with Java45 Summary (continued) Alice window: menus, buttons, object tree, details area, world window, editing area, and events area Class: blueprint for an object Method: behavior-producing message Function: message that returns information Software engineering encompasses software design, and implementation and testing