When you start a new world, pick a backgrou nd.. Click on add objects to add objects to your world.

Slides:



Advertisements
Similar presentations
(Say each word as it appears on the screen.)
Advertisements

(Say each word as it appears on the screen.)
Frequency Words.
Repetition everywhere – comparing while in a method and as an event Susan Rodger Duke University July 2010 modified July 2011.
Lesson 7 C Creating a New World Method— the Dragon Captures the Princess Slides are adapted from aliceprogramming.net or
First 100 High Frequency Words
List 1 Sight Words.
As you come in…  Sign in (in back) and pick up  Badge  Name Card – write your first name LARGELY on back  Log in:  Launch/Start Alice  Any questions?
How Tall Are You? Introducing Functions By Jenna Hayes under the direction of Professor Susan Rodger Duke University July 2008 Updates made June 2014 by.
Using Functions in Alice By Jenna Hayes Under the direction of Professor Susan Rodger Duke University July 2008.
Princess & Dragon Part 2: Teaching a Dragon to Fly—Methods & Properties By Elizabeth Liang under the direction of Professor Susan Rodger Duke University.
Lesson 7B Creating Our Own Methods Slides are adapted from aliceprogramming.net or
Lets Play Catch! Keeping Score in Alice By Francine Wolfe Duke University Professor Susan Rodger May 2010.
Using Functions in Alice By Jenna Hayes Under the direction of Professor Susan Rodger Duke University July 2008.
Lights Camera Action! Part 3: BDE Events By Deborah Nelson under the direction of Professor Susan Rodger Duke University July 2008.
Alice Variables Pepper. Set to Java look Edit / preferences restart.
Multiplying and Dividing Decimals
Calvin and Hobbes Teach Properties and Functions Created by Daniel MacDonald under the direction of Professor Susan Rodger Duke University June 2013.
METHODS!.  A method is a sequence of instructions or behaviors that will be carried out when requested.  You can use them to create new methods so that.
Shorter of two objects and changing color Functions, events and setting the color Susan Rodger, Duke University June 2008.
The.
Checking for Collisions Ellen Yuan Under the direction of Professor Susan Rodger at Duke University June 2014.
220 Dolch Words.
by Chris Brown under Prof. Susan Rodger Duke University June 2012
Making a Timer in Alice.
Shorter of two objects and changing color V2 Functions, events and setting the color in sequence and randomly This is a modification of the Changing Color.
Changing Color, Using Text Objects, and Random Selection in Alice By Jenna Hayes Under the direction of Professor Susan Rodger Duke University, July 2008.
Random numbers in Alice 3. Create world, add character (“Red” in this example) Dragged walk tile to right onto Run method. Click on “??? “ part of Tile.
Array - adding to array at run time Please see speaker notes for additional information!
Dolch Vocabulary Words
Animating Objects in Groups: Using Arrays and Lists By Ruthie Tucker under the direction of Professor Susan Rodger Summer 2008.
By Melissa Dalis Professor Susan Rodger Duke University June 2011 Multiplication Table.
Making a Timer in Alice By Jenna Hayes under the direction of Professor Susan Rodger Duke University July
1 ball, 2 ball, red ball, blue ball By Melissa Dalis Professor Susan Rodger Duke University June 2011.
BLT # go help look at run.
The. to and a I you it in said for up look.
When I want to work with SQL, I start off as if I am doing a regular query.
Dolch list for Ms. Hrouda’s Class!. List 1 the was.
Sight Word List.
Dolch Word List Directions: This is the Dolch words list. They are 220 words that occur frequently in reading. Your child should be able to recognize.
Bunny Eat Broccoli Repetition – Simple loops and Conditional loops Susan Rodger Duke University July 2011.
Can I get your number? By Melissa Dalis Professor Susan Rodger Duke University June 2011.
Creating a Historical Tour in Alice By Jenna Hayes May 2010.
The Essentials of Alice Mrs. Jayne Slease SBMS CTE Computer Science and Animation Credit to Duke Students under the direction of Professor Susan Rodger.
Tutorial for Arrays and Lists. Description This presentation will cover the basics of using Arrays and Lists in an Alice world It uses a set of chickens.
Ready, SET, go! By Melissa Dalis Professor Susan Rodger Duke University July 2011.
PROGRAMMING IN PYTHON LETS LEARN SOME CODE TOGETHER!
Dolch 220 Sharks! a is it am to an red up.
Introduction to Computer Programming - Project 2 Intro to Digital Technology.
CompSci 4 Chap 6 Sec 2 Sep 30, 2010 Prof. Susan Rodger “All your troubles are due to those ‘ifs’,” declared the Wizard. If you were not a Flutterbudget.
Kindergarten Sight Words. Yes I can! Come here Look at me.
Multiplication Level 1 (Facts 0-2) Read These Instructions:  Try to get the answer before the computer puts it on the screen.  Do not click on your.
Dolch Word List Directions: This is the Dolch words list. They are 220 words that occur frequently in reading. Your child should be able to recognize.
How Tall Are You? Introducing Functions for Alice 3 By Jenna Hayes under the direction of Professor Susan Rodger Duke University July 2008 Updates made.
The Essentials of Alice By Jenna Hayes under the direction of Professor Susan Rodger Duke University May 2009.
An Introduction to Programming Using Alice 2.2, Second Edition Chapter 7 Recursive Algorithms.
A. Kindergarten Dolch List 2013 Sight Words am are.
A. and away big blue can come down find for.
Objective of the lesson Use Blockly to make a dice for Snakes and Ladders All of you will: – Make an image which displays when you press a button Most.
This is a while loop. The code is done while the condition is true. The code that is done is enclosed in { }. Note that this program has three parts: Housekeeping.
Bunny Eat Broccoli Repetition – Simple loops and Conditional loops
Let's Race! Typing on the Home Row
Vehicles and Conditionals
Please use speaker notes for additional information!
This is ballsbounce. a2w where I have dragged more things into world
Using Functions in Alice
Notes on SQL This slide show will introduce SQL using Access. It assumes only an introductory level of knowledge about Access.
Using Alice This is an introduction to Alice..
This is an introduction to JavaScript using the examples found at the CIS17 website. In previous examples I specified language = Javascript, instead of.
Wrapup which is the document write that says the end.
Presentation transcript:

When you start a new world, pick a backgrou nd.

Click on add objects to add objects to your world.

Pick the type of object and then you can drag and drop on the background. Click done when you finish with placing objects.

When the program runs, world.my first method will be executed, so I put the things I wanted to do in world.my first method. But first I had to make the bounce methods. obje cts

I clicked on the toyball1object and I can see the bounce method that I created. I created it by clicking on create new method and then naming it bounce. Since it is associated with toyball1 it became toyball1.bounce.

When you click on bounce for toyBall1.bounce, you see two move statements that I did to make a bouncing motion. I dragged toyBall1.move over twice and selected down or up and the number of meters to move.

To show you, I dragged toyBall1.move over again and it shows how to pick down and the meters, other will get me access to other numbers.

As you can see, I have a bounce method for each ball. This is volleyball.

After I made the bounce method for each ball. I went back to world.my first method which will execute when I run and I dragged over the bounce method for each ball. Note that to do that I clicked on the ball, and then dragged its bounce method over to world.my first method. When I finish, I can click play and I will see the balls bounce.

I clicked play and now the tennisBall is doing its bounce method.

my first method startup houseke eping proc ess wra pup Startup or housekeeping is done once at the beginning of the program. Process is usually done multiple times - it usually is controlled by a loop. It is possible to just do it once. Wrapup is done once at the end when you are closing down. For example saying the program is ending or displaying totals.

Now I am creating three methods within world.my first method. They will be executed in sequence when I play. The three methods are all associated with world so they are named world.startup, world.process and world.wrapup. After I create them, I drag them over to world.my first method.

Here is the code in startup.world (to see it I clicked on edit next to startup). To make this I went to toyBall1 and dragged its move over and then I did the same with the other balls.

As I said on the last slide, I clicked on toyBall1 and got its associated methods and dragged the move over to world.startup. What I am doing is moving all three balls into the air as my startup.

Note that world.wrapup brings all the balls down. But, before I do wrapup, I do world.process.

I drag up loop and tell it that I want it to be executed 5 times. Then I drag up Do together so they are done all at once and then I click on each ball and drag its bounce method over. The balls will bounce together 5 times.

Now I am using an if else.

I clicked on create new variable when I made whichBall and gave it the name whichBall and value 1 stayed.

I am now duplicating the whichBall set value line I dragged whichBall right below the existing one and it let me pick set value and I set it to 1 temporarily, I am going to change that to a random number.

Then I went over to functions and dragged the random number function over where the temporary 1 was. Now I click on more to get the minimum and a new more comes up to let me get the maximum.

I now have a random number that is decimal from 0 to 3 so I say if it is < or = 1 bounce the toyBall1, else < or = 2 bounce tennisBall, else bounce volleyBall. One ball will bounce in world.process.

This programs combines the last two programs, the pick of the random number and the if are inside the loop so there will be 5 bounces each dependent on the random number that is chosen.

I set up the while loop and dragged howMany down and said do it while howMany is < 3. To get the increment, I again dragged howMany down and selected increment.