Glossary for Alice Programming
Learn Alice in FREE step-by-step lessons.
accumulator: A variable (called an accumulator) can be used to find the total of several items.
Lesson: A Little Mathadd object to scene: One of the problems with starting with a full scene is that you may not be able to find the characters you add.
Adding Characters to a Full Scene Lesson: Start, Save, Reopen and modify your programaddition quiz: Bears ask you to add numbers, then tells how many you got right.
Addition Quiz Lesson: Random Numbersaddition witch age: What ever age you say you are, the witch says she's older.
The Witch is Older Lesson: A Little MathaddSceneActivationListener: The addSceneActivationListener makes a dog wag his tail continuously while other actions take place.
Tail wags continuously Lesson: Events: Responding to the Mouse and KeyboardAND && comparison: You are a teenager if age >=13 AND age <= 19
Teenager? Using AND: && Lesson: Boolean Expressions: true or falseargument procedure: Arguments are values that are passed to a method.
Lesson: Class Procedures in Alice3: Reusable Codearguments vs. paramters:
Parameters are the rules for the values that a method receives. For instance the "say" procedure has one parameter: a string, such as "Hello". When you call a method,
the values that you provide are called
arguments.
Lesson: Class Procedures in Alice3: Reusable Codearms, moving: A biped's two arms are mirror images of each other.
Moving the arms Lesson: Posing Objects in Alice3array elephant trunk: The segments of an elephant's trunk, tail and a few other things are an array.
elephant's trunk segments are an array Lesson: Arrays: Working with lists of objectsarray joints: The segments of an elephant's trunk, tail and a few other things are an array.
Segments of an elephant's trunk as an array Lesson: Arrays: Working with lists of objectsarray objects: An array of birds perform
Birds spread wings and say something Lesson: Arrays: Working with lists of objectsarray procedure: Each fish swims to cave with procedure
Fish swim to cave with procedure Lesson: Arrays: Working with lists of objectsarrays, parallel: One array contains animals, the other the things they say
Parallel Arrays: one for animals, te other for what they say Lesson: Arrays: Working with lists of objectsarray: An array is a list of objects, or other values.
Lesson: Arrays: Working with lists of objectsarrow keys: Add object mover for the shark so that the user can move it with the arrow keys.
Object Mover and Key press events Lesson: Events: Responding to the Mouse and Keyboardas seen by: The argument asSeenBy shows a movement through the eyes of another object.
As Seen By: A different point of view Lesson: Advanced Techniques: The finishing touchesas seen by: AsSeenBy is an argument that shows a movement through the eyes of another object.
As Seen By: A different point of view Lesson: Advanced Techniques: The finishing touchesassign: This statement assigns a new value to a variable.
Lesson: Variables in Alice 3atmosphere color: The color of the sky.
Lesson: Setting up the Alice Virtual Worldbackground actions: The addSceneActivationListener makes a dog wag his tail continuously while other actions take place.
A dog wags his tail continuously Lesson: Events: Responding to the Mouse and Keyboardbackground sound: A sound can be played continuously in the background.
Lesson: Events: Responding to the Mouse and Keyboardbillboards: A UFO lands in Paris using a billboard with a picture of Paris.
Using billboards to display images Lesson: Advanced Techniques: The finishing touchesbillboards: A UFO lands in Paris using a billboard with a picture of Paris.
Using billboards to display images Lesson: Advanced Techniques: The finishing touchesbiped wave procedure: Copy the code for Loki waving to create procedure for any biped to wave.
A Biped Waving Procedure Lesson: Class Procedures in Alice3: Reusable Codebiped wave: Video shows statements for making Loki wave.
Loki Waves Lesson: Class Procedures in Alice3: Reusable Codebiped: A biped is a 3D character that stands on 2 feet. This includes all of the humans, but also a few animals such as the pig and a cat that stand on 2 legs.
Lesson: Introduction to Alice 3blank slate: A way to start a new project by choosing a ground texture: mars, ocean, room, grass, etc.
Lesson: Start, Save, Reopen and modify your programboolean drill: See if you can do these comparisons
A drill on Boolean values Lesson: Boolean Expressions: true or falseboolean if: Ask if Thor is happy, he says ha-ha or boo-hoo
Using Boolean Expressions in If Block Lesson: Boolean Expressions: true or falseboolean: Boolean values have one of only two values: either true or false.
Lesson: Boolean Expressions: true or falsebrieftour: Video Overview of the components in Alice
A Brief Tour of Alice Lesson: Introduction to Alice 3bug: A bug is an error in a program. Debugging is the process of finding and fixing the errors.
Lesson: Scene Procedures in Alice 3calculate distance: Distance to move to be next to something
Calculate Distance to Move Bunny Lesson: Calculations and FunctionscamelCase: Camel Case is the naming convention of starting a name with a lower case letter, then using an uppercase letter for each new word. Examples: userName, madHatter, badDude, etc. Names can not have a space, and camelCase is a way to separate words in a name to make it easier to read.
Lesson: Your First program: Hello Worldcamera changes: Change the position of the camera, turn and resize objects, delete and undo.
Changing the Camera Position Lesson: Start, Save, Reopen and modify your programcamera changes: Using the various handles
Changing the position of camera and objects Lesson: Setting up the Alice Virtual Worldcamera marker, scene change: The camera uses camera markers to switch from scene on the left and one on the right.
Uses two different Cinderellas.
Cinderella scenes with camera markers Lesson: Advanced Techniques: The finishing touchescamera markers: Camera markers let you set up positions for the camera to move to
Using Camera Markers Lesson: Setting up the Alice Virtual Worldcamera marker: After positioning the camera, you can save that position using a camera marker. You can use those markers in your code to focus the camera. This is one way of changing scenes.
Lesson: Advanced Techniques: The finishing touchescamera vehicle: A moving object can be the vehicle for the camera.
Lesson: Advanced Techniques: The finishing touchescamera views, stacking boxes: Different views help to stack 3 boxes
Camera views: Stacking Boxes Lesson: Setting up the Alice Virtual Worldcamera views: View the scene from starting view, layout, top, side, or front
Camera views Lesson: Setting up the Alice Virtual Worldcamera: Every Alice world includes a camera. The camera is point of view of the user of the Alice world. The camera can be changed to zoom in or out or even to move around with another object.
Lesson: Setting up the Alice Virtual Worldcanvas wall: Putting a canvas on the wall
Hang Picture on Wall Lesson: Setting up the Alice Virtual Worldchange ground: Create scene procedures and change the ground and visibility of objects.
change ground Lesson: Advanced Techniques: The finishing toucheschanges camera and objects: Using the various handles
Changing the position of camera and objects Lesson: Setting up the Alice Virtual Worldchild or adult: Compare age to determine if child or adult
Child or Adult? Comparing values Lesson: Boolean Expressions: true or falseclass as variable: The jokester can be any of the animals.
S Jointed Model as variable Lesson: Variables in Alice 3class: Classes in Alice are definitions of the various 3D models. When you drag one of these classes onto the stage you create an object, which is an instance of the class. A class can be described as the blueprint or template for creating an instance of the class.
Lesson: Introduction to Alice 3click: In Alice, you can write code for what to do when the user Click the mouse. This is called an event.
Lesson: Events: Responding to the Mouse and Keyboardcode editor: In Alice you add and edit code in the code editor by dragging tiles into the code area.
Lesson: Start, Save, Reopen and modify your programcode preference: Show your code in the same mode as the videos.
Change the code preference to Java Lesson: Your First program: Hello Worldcode: Code is all of the statements that are part of the program.
Lesson: Start, Save, Reopen and modify your programcoffee-tea: See if you can add another choice
The user is offered coffee and tea Lesson: Boolean Expressions: true or falsecollisions: A collision occurs when two characters move into each other. This event can be handled.
Lesson: Events: Responding to the Mouse and Keyboardcolor, atmosphere: The color of the sky.
Lesson: Setting up the Alice Virtual Worldcolor: Color is one of the properties of objects that can be changed.
Lesson: Setting up the Alice Virtual Worldcomments: This video demonstrates how to add comments.
Adding comments Lesson: Your First program: Hello Worldcomment: Comments start with //. Comments do not change the execution of the program, but are a very important tool for programmers. Comments are one way of documenting your code.
Lesson: Your First program: Hello Worldcompare &&: You are a teenager if age >=13 AND age <= 19
Teenager? Using AND: && Lesson: Boolean Expressions: true or falsecompare >: Panda says "Whee" if amountToTurn > 2.0
Compare if > Lesson: Boolean Expressions: true or falseconstant: A constant is a stored value that never changes. For instance, PI is a constant. Its value is 3.14159 and never changes.
Lesson: Variables in Alice 3control structures: Control Structures are the blocks that control the order that statments are executed. It includes loops, do in order, do together, and if/else blocks.
Lesson: Creating Animation in Alice3control-structures: Control structures control the order in which statements are executed.
Control Structures Lesson: Creating Animation in Alice3count 1,2,3...: Use count control structure to count to 3.
Using a count loop to count to 3. Lesson: Creating Animation in Alice3count backwards blast-off: Counting down with a while loop: 10, 9, 8, 7, 6, 5, 4, 3, 2, 1 blast off!
Count down and blast off! Lesson: Creating Animation in Alice3count loop bunny-no: Use count control structure to shake head no 3 times
Using a count loop to shake head no. Lesson: Creating Animation in Alice3count loop wave: Use count control structure to wave 3 times
Using a count loop to wave Lesson: Creating Animation in Alice3count loop: The count loop is a control structure that lets you repeat a block of code a specific number of times.
Lesson: Creating Animation in Alice3counter loop: Using a while loop to count using counter=counter+1
Counter Loops Lesson: Calculations and Functionscounter2: Using a while loop to count using counter=counter+1
3 Guys take turns counting Lesson: counter: A counter is a variable that is initialized to 0, then add 1 to it when the thing you are counting occurs.
Lesson: A Little Mathcounting objects: An array of animals take turns to count
object take turns counting Lesson: Arrays: Working with lists of objectscounting quiz: How many fish do you see? (Some of the fish are invisible.)
A Counting Quiz Lesson: Random Numberscrash: Alice tends to crash, but there are steps to avoid frustration.
Crashing Lesson: Introduction to Alice 3crash: Crashing is when a program stops working.
Lesson: Introduction to Alice 3dancing-bird: Variables are useful for any movement
Variables for movement Lesson: Variables in Alice 3data types: Values in Alice can be string, integer, double, Boolean or any of the gallery classes.
Data Types Lesson: Variables in Alice 3depth: The depth is one of the properties of all 3D objects. Depth is the distance from the front to the back of a 3D object. The function getDepth is used to retrieve its current value. The setDepth procedure is used to change the value. The width, height and depth properties will stay in proportion.
Lesson: Setting up the Alice Virtual Worlddirection: Each object has a sense of direction: forward, backward, left, right, up, backward, and down.
Directions Lesson: Understanding the Alice Virtual Worlddisable procedure Disabling Procedure Lesson: Scene Procedures in Alice 3discount: Children and Seniors pay $10 admission. Everyone else pays $15
Discount? Using OR: || Lesson: Boolean Expressions: true or falsedistance, calculate: Distance to move to be next to something
Calculate Distance to Move Bunny Lesson: Calculations and Functionsdistance: Distance to move to be next to something
Calculate Distance to Move Skater Lesson: division, remainders goldcoins: Learn about division and remainders.
The fish share the gold coins Lesson: A Little Mathdivision: Division is performed using the / operator.
Lesson: A Little Mathdo in order: Statements inside a do in order block are executed one after the other in sequence.
Lesson: Creating Animation in Alice3do together: Statements inside a do together block are executed concurrently: all at the same time.
Lesson: Creating Animation in Alice3dotogether: Animals all say hello at the same time.
Using doTogether Lesson: Your First program: Hello Worlddouble input: We ask the user for a double and the panda spins around that amount.
Panda asks how much to turn Lesson: User Input in Alice3double: Double is a variable type that has decimal places. Movements of the 3D characters are always expressed as double values. Example: 0.25, 3.0, etc.
Lesson: Variables in Alice 3drag-drop: Using default model manipulation in event listeners lets the user drag and drop objects at run time.
Drag and Drop Lesson: Events: Responding to the Mouse and Keyboardeach in together: The each in together control structure causes all statements inside this block to change all elements of an array at the same time.
Lesson: Arrays: Working with lists of objectsedit code: Edit the code, change the object, add parameters, and delete or disable statements.
Editing the code Lesson: Start, Save, Reopen and modify your programedit say: This video demonstrates how to create your first program.
Editing the say command Lesson: Your First program: Hello Worldediting markers: Edit object markers: add, delete, re-rename, and change the color
Editing markers Lesson: Creating Animation in Alice3editors: Add 3D models in setup scene, add code in code view.
Code Editor vs. Scene Editor Lesson: Your First program: Hello Worldedit: Add to variable
Editing variables Lesson: Variables in Alice 3endless loop: Uses an endless while loop to circle continuously.
Yeti circles around baby penguin Lesson: Creating Animation in Alice3event collision: Making something happen when objects collide.
Event: collision Lesson: Events: Responding to the Mouse and Keyboardevent drag drop: Using default model manipulation in event listeners lets the user drag and drop objects at run time.
Event: drag and drop Lesson: Events: Responding to the Mouse and Keyboardevent handling: Event handling means writing code to specify what to do when an event (such as the user clicking the mouse) occurs.
Lesson: Events: Responding to the Mouse and Keyboardevent mouse click: The bear says something when the user clicks on him.
User clicks object Lesson: Events: Responding to the Mouse and Keyboardevent mouseclick: Each animal says something when clicked
Mouse click events Lesson: Events: Responding to the Mouse and Keyboardevent timer: Using the timer event, the penguin says "Help!" at random intervals.
Event: timer Lesson: Events: Responding to the Mouse and Keyboardevent: Events are things that happen such as a user action with the mouse or keyboard, and also events such as a timer going off.
Lesson: Events: Responding to the Mouse and Keyboardexport-import: This video illustrates how to export and import procedures and functions.
Export and Import procedures Lesson: Advanced Techniques: The finishing touchesfind smallest: The first value is the smallest and largest so far.
Loop to add numbers and find smallest and largest Lesson: Calculations and Functionsfish-back-forth: Random numbers for the distance to swim makes it more realistic.
A Fish swims back and forth Lesson: Random Numbersflowchart, drawing: Video shows how to draw flowchart using draw.io
Drawing Flowcharts Lesson: The Software-Lifecycleflowchart, rock paper scissors: The top level flowchart for the rock paper scissors game is shown.
Flowchart for Rock, Paper, Scissors game Lesson: The Software-Lifecycleflowcharts: A flowchart is a drawing that shows the steps in an algorithm.
Flowcharts Lesson: The Software-Lifecycleflyer: Flyer is the class of objects that have wings. This includes penguins that don't actually fly in the real world.
Lesson: Introduction to Alice 3fog density: A fog density of 0 is no fog, 1 is completely covered in fog with 0 visibility.
Lesson: Setting up the Alice Virtual Worldfor each in: The for each in control structure is used to make changes to each element of an array, one at a time.
Lesson: Arrays: Working with lists of objectsfunction getDistanceTo: We use a function to find how far away something is.
How far is the cave? Lesson: A Little Mathfunction getHeight: We use a function to find height. These functions are in the panel next to procedures
How tall is the snow-woman? Lesson: A Little Mathfunction height: The height is one of the properties of all 3D objects. The function getHeight is used to retrieve its current value. The setHeight procedure is used to change the value. The width, height and depth properties will stay in proportion.
Lesson: A Little Mathfunction vs. procedures: In addition to procedures, there are also functions.
Functions vs. Procedures Lesson: Start, Save, Reopen and modify your programfunctions: Shows the difference between procedures and functions.
Using Functions Lesson: Understanding the Alice Virtual Worldfunctions: Create a function to get distance to move next to something
Writing functions Lesson: Calculations and Functionsfunction: A function returns an answer to a question.
Lesson: Introduction to Alice 3function: A function is a method that computes and returns a value.
Lesson: Calculations and Functionsgallerytour: Video overview of the 3D models available
A Gallery Tour Lesson: Introduction to Alice 3get boolean: We ask the user for a Boolean value.
Martian asks if he is on Mars Lesson: User Input in Alice3get: We can ask the user for input using the get commands.
Lesson: User Input in Alice3ground change: Create scene procedures and change the ground and visibility of objects.
ground: change Lesson: Advanced Techniques: The finishing touchesground, changing: Change the ground, opacity, add fog, light from above and below
How to Change the ground Lesson: Setting up the Alice Virtual Worldground: All Alice world start with a ground object. You can change this to a solid color, a texture such as grass, moon or dirt. You can also import an image to display instead of the other choices.
Lesson: Setting up the Alice Virtual Worldguess number: Loops until the user guesses the number: give hints "too high" and "too low"
Guess the Aliens number Lesson: Random Numbershandles: Handles are used to position objects in the scene editor.
Lesson: Setting up the Alice Virtual Worldhands-on-head: Variables are used to make it easier to experiment
Hands on the head Lesson: Posing Objects in Alice3hello world1: Important things to remember when you create the first program
About the first program Lesson: Your First program: Hello Worldhello world: This video demonstrates how to create your first program.
The first program: Hello World Lesson: Your First program: Hello Worldhello: Why you should write the Hello World program
Why Hello World? Lesson: Your First program: Hello Worldhow many penguins: See if you can add to this project
The seagull asks how many penguins there are. Lesson: Boolean Expressions: true or falseIDE: Most modern programming environments allow you to create the program, edit it and run it from one application called the IDE Interactive (or Integrated) Development Environment. Older programming languages required you to work with several separate applications.
Lesson: Introduction to Alice 3if: The if/else control structure lets you test a condition and execute one block of code if the condition is true and a different block of code (the else block) if it is false.
Lesson: Boolean Expressions: true or falseimport export: This video illustrates how to export and import procedures and functions.
Export and Import procedures Lesson: Advanced Techniques: The finishing touchesimport: Alice allows you to import graphics and display them on billboards or as the ground. It also lets you import sounds and play them. If you are having problems with Alice crashing, you may want to keep these imports small.
Lesson: Advanced Techniques: The finishing touchesinfinite loop: An infinite loop is one that is never going to end. The control structure while(true) is an infinite loop. It is also called an endless loop.
Lesson: Creating Animation in Alice3inheritance: In programming, inheritance means that you can create a base class, such as a quadruped, and then derive another class, such as an elephant, that inherits all of the properties of other quadrupeds, but it is extended to have additional properties, such as a trunk. In this example, Quadruped is the base class and Elephant is the derived class.
Lesson: Introduction to Alice 3initializer: In Alice, when you declare a variable, you must select a type, give it a name, and an initial value, the initializer. The initial value must be of the type that is selected.
Lesson: Variables in Alice 3input boolean: We ask the user for a Boolean value.
Martian asks if he is on Mars Lesson: User Input in Alice3input double: We ask the user for a double and the panda spins around that amount.
Panda asks how much to turn Lesson: User Input in Alice3input integer: Use the function getIntegerFromUser to ask the user's age.
Ask the user how old they are Lesson: User Input in Alice3input name from user: Use the function getStringFromUser to ask the user his name, then say hello using the name entered.
Ask the users name and say hello Lesson: User Input in Alice3input string: Wolf asks "What's your favorite food?", then says that is his favorite too.
Ask the users their favorite food Lesson: User Input in Alice3input: Alice allows you to ask the user questions and input the response into a variable.
Lesson: User Input in Alice3installation: ALice must be downloaded and installed on your computer.
Lesson: Introduction to Alice 3installation: Install Alice in Windows or Mac
Installing Alice 3 Lesson: Introduction to Alice 3instance: The gallery has a number of classes of 3D models. When you select one of the 3D models and drag it into the scene, you are creating an instance of that class. Only the instances that you add to the virtual world can be used in your code. You can have more than one instance of a class. For example, you might want 3 elephants. You could change some properties of them so that they don't all look the same.
Lesson: Introduction to Alice 3integer input: Use the function getIntegerFromUser to ask the user's age.
Ask the user how old they are Lesson: User Input in Alice3integer: An Integer is a whole number. It is one of the types that can be used in Alice. (A number with decimal places is a Double.) The number 3 is an Integer, but 3.0 is a Double.
Lesson: Variables in Alice 3itteration: See loop: is a control structure that repeats the code in its block. Loops in Alice include while, count and 'for each in'
Lesson: Creating Animation in Alice3java: Java is a programming language very similar to Alice code. In these lessons code is shown in Java style. Setting preferences for Java code will make it easier to follow these lessons.
Lesson: Start, Save, Reopen and modify your programjoints: All of the 3D models have subparts that are connected together by joints. Moving, turning, and rolling these joints create animation. You can create code to make the characters walk, wave, roll over, swim, or flap its wings. In addition you can open and shut gates, car doors, and a treasure chest.
Lesson: Posing Objects in Alice3Key press event: Add object mover for the shark so that the user can move it with the arrow keys.
Key press to move object Lesson: Events: Responding to the Mouse and Keyboardkeypress: Learn how to listen for a key press (typing a letter) and respond
The keypress event Lesson: Events: Responding to the Mouse and Keyboardleg, raise: Try raising the other leg.
Raising the leg Lesson: Posing Objects in Alice3legs, pose: Legs both descend down from the body
but are mirror images of each other from left to right.
Moving the legs Lesson: Posing Objects in Alice3loop count: Use count control structure to shake head no 3 times
Using a count loop to shake head no. Lesson: Creating Animation in Alice3loop: A loop is a control structure that repeats the code in its block. Loops in Alice include while, count and 'for each in'
Lesson: Creating Animation in Alice3markers editing: Edit object markers: add, delete, re-rename, and change the color
Editing markers Lesson: Creating Animation in Alice3markers object: Markers let you set up positions for objects to move to
Using Markers Lesson: Setting up the Alice Virtual Worldmarkers pixie: Pixie moves between several markers.
Pixie moves between marked locations Lesson: Creating Animation in Alice3markers, moving between: Markers let objects move to a marked position.
Moose and skunk move between marked locations Lesson: Creating Animation in Alice3marker: Alice has two types of markers: Camera Markers and Object markers. Markers are used to store a location or position in the world. You can add and edit markers in the scene setup tab. Once you have added a marker, you can reference that marker in the code.
Lesson: Creating Animation in Alice3methods: Procedures and functions are methods. A procedure is used to perform an action. A function returns a value. Methods are an important way to organize a program, instead of putting all of the code in myFirstMethod.
Lesson: Class Procedures in Alice3: Reusable Codemethod: Methods are procedures which perform an action, and functions which answer a question.
Lesson: Introduction to Alice 3motion: Video demonstrates the basic principles of object motion and rotation
Movement in Alice Lesson: Understanding the Alice Virtual Worldmouse clicks: Each animal says something when clicked
Click on several different objects Lesson: Events: Responding to the Mouse and Keyboardmouse click: The bear says something when the user clicks on him.
Click on the bear event Lesson: Events: Responding to the Mouse and Keyboardmove back and forth: It's important to start and end in the same position.
Fish swims back and forth Lesson: Creating Animation in Alice3move between markers: Markers let objects move to a marked position.
Moose and skunk move between marked locations Lesson: Creating Animation in Alice3move turn roll chicken: How to add move, turn and roll procedures to the code
A Dancing Chicken using move, turn and roll Lesson: Understanding the Alice Virtual Worldmove turn roll dolphin: A dolphin moves up, down, left and right
Dolphin tricks: Moves, Turn and Roll Lesson: Understanding the Alice Virtual Worldmultiplication ball-cost: How much does one soccer ball cost? Then 3 would cost total=cost * 3
Cost of 3 Soccer Balls Lesson: A Little Mathmultiplication, monkey jump: Monkey jumps a bit higher each time by multiplying variable by 1.3
Monkey jumps for banana Lesson: A Little Mathname of variable: Variable names must follow rules, such as no spaces.
Name of variables Lesson: Variables in Alice 3name-drill: See if you can select the valid names.
Drill on names Lesson: Variables in Alice 3names: When you add objects, variables and methods, you must give them a name. The names must follow a few rules and conventions.
Lesson: Your First program: Hello Worldnaming: Follow these conventions for the names you give objects, variables and methods.
Naming conventions Lesson: Your First program: Hello Worldnighttime: The function getBooleanFromUser gives a choice of true or false.
Ask if it is nighttime Lesson: Boolean Expressions: true or falseobject arrays: An array of SJointedModel contains, yeti, tortoise and stuffedTiger
An array of animals Lesson: Arrays: Working with lists of objectsobject changes: Using the various handles
Changing the position of camera and objects Lesson: Setting up the Alice Virtual Worldobject markers: Markers let you set up positions for objects to move to
Using Object Markers Lesson: Setting up the Alice Virtual Worldobject marker: Object markers are used to store a location in the world. You can add and edit markers in the scene setup tab. Once you have added a marker, you can reference that marker in the code. For instance, you might put a marker in front of the gate, and then have a character move to that marker at some point in the code.
Lesson: Creating Animation in Alice3objects counting: An array of animals take turns to count
Animals counting Lesson: Arrays: Working with lists of objectsobjects: Shows some of the main categories
Objects Lesson: Introduction to Alice 3object: An object is an instance of a class. You create an object when you drag it onto the stage. An object is any of the 3D models that make up the virtual world. It includes animals, trees, the ground, camera, props, and characters.
Lesson: Introduction to Alice 3one shots: A 3D model can be posed in the scene editor using one shots. This is a good way of experimenting to find how much you need to rotate a joint or whether to roll or turn.
Lesson: Setting up the Alice Virtual Worldoneshots subparts: Learn to pose subparts in scene editor using One Shots
Posing using One Shots Lesson: Posing Objects in Alice3oneshots: Use one shots to move, turn and roll in design view
Positioning with One Shots Lesson: Setting up the Alice Virtual Worldopacity: The opacity of an object can be set to 1 to make it invisible, or 0 to make it invisible. Values in between 0 and 1 can be used to make something translucent or to create a ghost.
Lesson: Setting up the Alice Virtual Worldorientation: Video demonstrates move, turn and roll
How Objects see the Virtual World Lesson: Understanding the Alice Virtual Worldorientation: Orientation is an objects position and direction in the world. Any movement of a object will be in relation to its orientation, not the viewer. If an object is facing to the right, moving it forward will move it to the right. If an object is facing up, moving forward will move it up towards the sky.
Lesson: Setting up the Alice Virtual Worldparallel arrays, animals talk: One array contains animals, the other the things they say
The animals talk: Parallel Arrays Lesson: Arrays: Working with lists of objectsparameters procedure: Parameters tell what can be passed to a procedure. Here, we pass the object that we want to cast a spell on, and the object we want to change it to
Witch casts spell Lesson: Class Procedures in Alice3: Reusable Codeparameters severalg: Several parameters are added to call the dog.
Make the dog crazy: Several Parameters Lesson: Class Procedures in Alice3: Reusable Codeparameters:
Parameters are the rules for the values that a method receives. For instance the "say" procedure has one parameter: a string, such as "Hello". When you call a method,
the values that you provide are called
arguments.
Lesson: Class Procedures in Alice3: Reusable Codeparamters vs, arguments:
Parameters are the rules for the values that a method receives. For instance the "say" procedure has one parameter: a string, such as "Hello". When you call a method,
the values that you provide are called
arguments.
Lesson: Class Procedures in Alice3: Reusable Codepass or fail: Compare a score to 65 and say "Pass" or "Fail"
Pass or Fail Lesson: Boolean Expressions: true or falsepenguin jumping up and down: Use a random value each time he jumps to make it look more realistic.
A Penguin Jumps Up and Down Lesson: Random Numberspercentage, tip: The Mad Hatter calculates 15% tip.
Finding a Tip Lesson: A Little Mathpivot point: Every 3D object has a pivot point. When you write code to turn or roll an object, it will turn or roll around that pivot point. The pivot point for most characters is at the bottom, between the feet. The pivot point for a shere is in the center. You can figure out where the pivot point is by rotating it.
Lesson: Setting up the Alice Virtual Worldplace: Eagle flies places using place and spatial relations.
Eagle flies around the mesa Lesson: Understanding the Alice Virtual Worldpose legs: Legs both descend down from the body
but are mirror images of each other from left to right.
Moving the legs Lesson: Posing Objects in Alice3poses setup: Learn to pose subparts in scene editor using handle tools.
Posing in Scene Editor Lesson: Posing Objects in Alice3poses, code: Code is used to pose a subpart.
Posing using code Lesson: Posing Objects in Alice3poses: Poses are created by manipulating an objects subparts. For instance, to kick you would need to manipulate the hip, knee and foot to create a kicking pose.
Lesson: Posing Objects in Alice3primitive method: Primitive methods are the procedures and functions that are available in Alice, such as turn, move, say, think, and getHeight. Methods for walking and swimming are not primitive, you must write those methods yourself.
Lesson: Class Procedures in Alice3: Reusable Codeprocedure break spell: A Scene procedure is used to break the spell.
Break the Spell Lesson: Class Procedures in Alice3: Reusable Codeprocedure parameters: Parameters are added so that we can vary the amount to wave and times to wave.
Adding Parameters to a Procedure Lesson: Class Procedures in Alice3: Reusable Codeprocedures, scene: Hello World using procedures.
Scene Procedures Lesson: Scene Procedures in Alice 3procedures: Video shows how to use procedure for top down design.
Procedures for top down design Lesson: Scene Procedures in Alice 3procedure: A procedure performs an action.
Lesson: Introduction to Alice 3procedure: A procedure is a method that performs and action. The primitive procedures include say, think and move. You can write additional procedures such as run or swim.
Lesson: Class Procedures in Alice3: Reusable Codeproject: The final project, animating a fairy tale, or other known story, teaches you to design, test, and debug a larger project.
Create a Final Project Lesson: Introduction to Alice 3project Complete Step 1 of the final project. Lesson: Your First program: Hello Worldproperties: All objects have properties such as width, height, color, opacity, and position as X, Y, and Z. You can change these properties using procedures, or retrieve their values using functions.
Lesson: Setting up the Alice Virtual Worldproperties: Video shows how to add properties to a class.
Adding properties to a class Lesson: Advanced Techniques: The finishing touchesprop: Prop is the category that includes classes for trees, walls, and other types of scenery
Lesson: Introduction to Alice 3pseudocode, rock paper scissors: Explanation and Pseudocode for the game
A game: Rock, Paper, Scissors Lesson: The Software-Lifecyclepseudocode: Pseudocode is English sentences that tell what you want the program to do. When you are designing a program, you may write the sentence "The ball bounces" but in the actual code you would move the ball up, then back down the same amount.
Lesson: The Software-Lifecyclequadruped: A quadruped is the class that stands on 4 legs. The quadruped class includes bear, dog, horse, elephant, dragon, etc. However, in the Alice world a pig (and a few others) is a biped and stands on 2 legs.
Lesson: Introduction to Alice 3quiz true or false: Using if to tell the user the answer is right.
A True/False Question Lesson: Boolean Expressions: true or falsequizgame: This video shows how to create a quiz and keep track of number right.
A Quiz Game Lesson: Boolean Expressions: true or falserabbit-fall: Uses the functions getDistanceTo and getHeight.
Rabbit Falls in Pond using Functions Lesson: Understanding the Alice Virtual Worldraise leg: Try raising the other leg.
Raising the leg Lesson: Posing Objects in Alice3random amount to turn: A random double
Panda Turns a Random Amount Lesson: Random Numbersrandom number: Alice has a few functions that return pseudo random numbers. Random numbers can be used to create games, and also to create more natural movements. For instance, when you walk, every step is not exactly the same size. Using a random number for the size of the step will make the movement more realistic. Instead of stepping a distance of exactly 1.1, you might use a random number between 0.9 and 1.2
Lesson: Random Numbersrandom1: Uses textModel to display a random double value between 0 and 1.
Displaying some random values Lesson: Random Numbersrandom2: A random integer from 1 to 6 inclusive to roll die
Displaying values from 1 to 6 Lesson: Random Numbersready set go: Tortoise says "Ready", "Set", "Go" using array
Arrays: Ready, Set, Go! Lesson: Arrays: Working with lists of objectsrelational operator: Relational operators are the ones that are used to compare two values: < (less than), > (greater than), == (equal), != (not equal), <= (less than or equal), >= (greater than of equal)
Lesson: Boolean Expressions: true or falseremainder goldcoins: Learn about division and remainders.
The fish share the gold coins Lesson: A Little Mathremainder: Practice finding remainders.
Remainder Drill Lesson: A Little Mathreopen: Instead of selecting a template choose other tabs: starters, my projects, recent, file.
Open an existing project Lesson: Start, Save, Reopen and modify your programrepetition: See loop: is a control structure that repeats the code in its block. Loops in Alice include while, count and 'for each in'
Lesson: Creating Animation in Alice3restaurant: Need restaurant with hamburgers and pizza
Restaurant? Using AND: && Lesson: Boolean Expressions: true or falsereturn: A function returns a value. If you write your own function, the last statement must return a value.
Lesson: Calculations and Functionsroom template, change: Change the walls, ceiling and floor in the room template.
Editing the room template Lesson: Start, Save, Reopen and modify your programsay, speed: Make the witch look up, say the words slower.
Look up, Say it slower Lesson: Start, Save, Reopen and modify your programscene change, simple: Create scene procedures and change the ground and visibility of objects.
A Simple way to change scenes Lesson: Advanced Techniques: The finishing touchesscene changes Lesson: Start, Save, Reopen and modify your programscene change: Create scene procedures and change the ground and visibility of objects.
A Simple way to change scenes Lesson: Advanced Techniques: The finishing touchesscene editor: In Alice you will be working in either the scene editor or the code editor. In the scene editor, you add all of the 3D characters, you can pose them, change the size, adjust the camera angles, and create markers.
Lesson: Start, Save, Reopen and modify your programscene parameters: Adding parameters makes the procedure more versatile.
Scene Parameters Lesson: Scene Procedures in Alice 3scene procedures2: The Yeti family says hello and goodbye using procedures.
Scene Procedures2 Lesson: Scene Procedures in Alice 3scene procedures: Hello World using procedures.
Scene Procedures Lesson: Scene Procedures in Alice 3scene procedure: A scene procedure is a procedure you create that is not a procedure for one of the 3D models.
Lesson: Understanding the Alice Virtual Worldscene property: A scene property is a variable that is available anywhere in your project.
Lesson: Scene Procedures in Alice 3scene transitions: Transitions are created by fading a billboard in and out.
Adding transitions to scene changes Lesson: Advanced Techniques: The finishing touchesscenes Both an Indoor and Outdoor Scene Lesson: Scene Procedures in Alice 3scene: An Alice world can have multiple scenes. All of the 3D models that are visible at one time is called a scene.
Lesson: Scene Procedures in Alice 3scope of variable: Scope is where a variable is available
Variable Scope Lesson: Variables in Alice 3scope: It's important where you declare variables.
Scope of variables Lesson: Creating Animation in Alice3shapes text: In the scene editor there is a tab in the Gallery labeled Shapes/Text. Here you will find shapes such as disc, cone, cylinder, sphere, torus, and box. You will also find the billboard and the textModel. These objects do not have any subparts, but they can be moved and rotated and used in a variety of ways. For instance, the billboard can display images, the textModel can be used as scoreboard in a game, and the sphere can be colored red to create an apple.
Lesson: Advanced Techniques: The finishing touchesshut car door: Open the car door in scene view using one shots
Opening and shutting a car door Lesson: Posing Objects in Alice3sim person: In the scene editor, in the biped class, the first few people are Sim People. When you add a sim person, a dialog window lets you select skin color, hair color and style, gender, and face shape, as well as a variety of outfits.
Lesson: Your First program: Hello Worldslitherer: The Slitherer Class includes a hermit snail, a long neck snail and nagi.
Lesson: Introduction to Alice 3smallest, find: The first value is the smallest and largest so far.
Loop to add numbers and find smallest and largest Lesson: Calculations and Functionssound, playing: Video shows how to import and play any mp3 file.
Playing Sounds Lesson: Advanced Techniques: The finishing touchessound: Video shows how to import and play any mp3 file.
Playing Sounds Lesson: Scene Procedures in Alice 3sound: Video shows how to import and play any mp3 file.
Playing Sounds Lesson: Advanced Techniques: The finishing touchesspatial relations: Eagle flies places using place and spatial relations.
Eagle flies around the mesa Lesson: Understanding the Alice Virtual Worldstarters: When you start a new project there is a Starters tab that lets you select from several complete scenes. For instance, the lagoon has seaweed, shells, treasure chests, stacks of coins, sand castles, caves and a pirate ship already arranged.
Lesson: Start, Save, Reopen and modify your programstart: There are many templates: grass, sea floor, snow, room, mars, and more.
Select a starting template Lesson: Your First program: Hello Worldstoryboard: A storyboard helps you design the entire movie: each scene shows the actors, positions, and scenery
Storyboards Lesson: The Software-Lifecyclestring input: Wolf asks "What's your favorite food?", then says that is his favorite too.
Ask the users their favorite food Lesson: User Input in Alice3string: A string is one of the types that are available in Alice. A string is a word or sentence. The say procedure requires a string as an argument. For example, "Hello" is a string.
Lesson: Variables in Alice 3subparts: Most of the 3D models have subparts that can be manipulated to create poses and animations. A biped has about 45 subparts such as neck, leftArm, rightKnee, rightPinkyFinger, etc. A bunny also has ears and tail that can be manipulated to make him wiggle his ears or shake his tail. A car also has subparts: you can open and shut the doors. A biplane has wings and propellers.
Lesson: Posing Objects in Alice3substitutes: You won't find everything you want.
Substitutions for things you can't find Lesson: Introduction to Alice 3swimmer: The Swimmer class has two subclasses: Fish and MarineAnimals classes. There are 7 different fish, and 5 marine animals, including a dolphin and a walrus.
Lesson: Introduction to Alice 3taller: Use the function getHeight to find the taller of two animals
Who is taller? Finding larger of 2 Lesson: Boolean Expressions: true or falsetallest: People are in an array, a loop is used to find the tallest.
Who's the tallest? Lesson: Arrays: Working with lists of objectstemplate: When you start a new Alice project you can select from one of several templates such as grass, water, or Mars. You can easily change this in the scene setup window and there are more templates available.
Lesson: Start, Save, Reopen and modify your programtemplate: You must select a template such as Grass or Mars with just sky and ground, or one of the templates shuch as Africa which include scenery.
Lesson: Introduction to Alice 3this: The keyword "this" refers to whichever object is currently active.
Lesson: Class Procedures in Alice3: Reusable Codetimer event: Using the timer event, the penguin says "Help!" at random intervals.
A Timer Event Lesson: Events: Responding to the Mouse and Keyboardtimer: You can set a timer to go off at a specific interval, then write code for what to do when that happens. This is called an event.
Lesson: Events: Responding to the Mouse and Keyboardtoddler-counting: A while block is a control structure that loops (repeats) while a condition if true. The statement while(count<5) will cause the block to execute until count is 5 or more. The statement while(True) will create an endless or infinite loop.
While Loop Lesson: Creating Animation in Alice3top-down: A Scene Procedure is code that is separate from myFirstMethod
Scene Procedure for Top-Down Design Lesson: Scene Procedures in Alice 3topdown design Move code to procedures Lesson: Scene Procedures in Alice 3total loop2, smallest: The first value is the smallest and largest so far.
Loop to add numbers and find smallest and largest Lesson: Calculations and Functionstotal loop: A loop to add numbers uses a running total: total=total + number
Loop to add numbers Lesson: Calculations and Functionstotal: A variable (called an accumulator) can be used to find the total of several items.
Lesson: A Little Mathtransport: The Transport class has 4 subclasses: Aircraft (6 models, including HotAirBalloon, Biplane, Helicoper and UFO), Automobiles (14 models), Trains (3 models) And Watercraft (5 models). All of these models have subparts that can be manipulated.
Lesson: Introduction to Alice 3truthtable: Video creates a truth table in Excel.
Truth table for Rock, Paper, Scissors game Lesson: The Software-Lifecycleturn head: Use a variable for the amount to turn head, use it to turn to left and right.
Troll turns head Lesson: type drill: See if you can select the correct type.
Drill on type Lesson: Variables in Alice 3type: In programming, type refers to whether a value is integer, double, string, or some other category.
Lesson: Variables in Alice 3Using OR: Children and Seniors pay $10 admission. Everyone else pays $15
Discount? Using OR: || Lesson: Boolean Expressions: true or falsevariable scope: Scope is where a variable is available
Variable Scope Lesson: Variables in Alice 3variable, use for ease of modification: Use variables to make changes easier
Variables for ease of modification Lesson: Variables in Alice 3variables: What is a variable?
Variables Lesson: Variables in Alice 3variable: A variable is a named location that can store a value. A variable can have a primitive type such as Integer, Double, but the type can also be a Class such as paint color or Biped.
Lesson: Variables in Alice 3vehicle camera: Video show how to assign a vehicle to the camera.
A UFO as the vehicle for the camera Lesson: Advanced Techniques: The finishing touchesvehicle monkey banana: In Alice, a vehicle is not necessarily a car or train, but it could be. If you want the monkey to hold a banana, you position the banana in the monkeys hand, then make the hand the vehicle for the banana. When you move the monkeys hand, the banan will move too. You can also set a vehicle using code.
Using Vehicles: Monkey holding Banana Lesson: Setting up the Alice Virtual Worldvehicle penguin egg: Position the egg on penguins feet, then make the penguin the vehicle for the egg
Using Vehicles: A penguin and Egg Lesson: Setting up the Alice Virtual Worldvehicle: A vehicle is not the same as an instance of the Transport class. In Alice, a vehicle is an object that is assigned to another object so that they move together. For instance, we can make the Pixies hand the vehicle for the magic wand, then when the pixie moves her hand the wand moves with it. You can also make the UFO the vehicle for the camera. As the UFO soars around the mesa, the camera moves with it.
Lesson: Setting up the Alice Virtual Worldvehicle Lesson: Advanced Techniques: The finishing touchesvertical movement: Use the handles to turn, roll, and move any of the objects in your project.
Moving vertically Lesson: Setting up the Alice Virtual Worldvoid: A method that does not return a value has a return type of void. A procedure is a void method.
Lesson: Class Procedures in Alice3: Reusable Codewalking algorithm: Get into position, take three steps, return to starting position.
A Walking algorithm Lesson: Creating Animation in Alice3walking procedure: A procedure for a biped to walk can be used for any biped.
Anyone can walk Lesson: Class Procedures in Alice3: Reusable Codewhile loop: A while block is a control structure that loops (repeats) while a condition if true. The statement while(count<5) will cause the block to execute until count is 5 or more. The statement while(True) will create an endless or infinite loop.
Lesson: Creating Animation in Alice3width: The width is one of the properties of all 3D objects. The function getWidth is used to retrieve its current value. The setWidth procedure is used to change the value. The width, height and depth properties will stay in proportion.
Lesson: Class Procedures in Alice3: Reusable Codeworld: In Alice, you create a world, or virtual world, by adding 3D models, arranging them, selecting fog and other settings for the story you want to tell.
Lesson: Introduction to Alice 3xyz: In a 3D world, each object has a position given as values for x, y, and z.
Lesson: Setting up the Alice Virtual Worldx: For the x position, 0 is in the middle, positive values are to the right, negative values are to the left.
Lesson: Setting up the Alice Virtual Worldy: For the y position, 0 has the pivot point on the ground, positive values are up in the air, negative values are buried in the ground
Lesson: Setting up the Alice Virtual Worldz: For the z position, 0 is in the middle, positive values are in the back, negative values are closer to the camera.
Lesson: Setting up the Alice Virtual World