Presentation is loading. Please wait.

Presentation is loading. Please wait.

Programming using Alice 3

Similar presentations


Presentation on theme: "Programming using Alice 3"— Presentation transcript:

1 Programming using Alice 3
Presented by the School of Computing and the Center for Forensics, Information Technology, and Security

2 What is computer programming?
Computer programming is all about telling a computer what you want it to do. Remember that a computer is very dumb. It won’t anything unless you tell it to. To learn how to tell a computer what to do, we have to be able to speak in a way the computer understands

3 What is Alice? Alice is a programming tool that was written by Carnegie- Mellon University. It is designed to teach you how to talk to a computer and tell it what to do. You do this by creating your own world. You put things in your world and tell them what to do. You can download Alice from alice.org.

4 Creating an Alice world
When you create an Alice world, you will be asked to choose a background. You have 20 choices. When you pick the background, click OK.

5 The parts of the Alice screen
When you create an Alice world, there are three important parts of the Screen The world You get to see a miniature version of your world The code area This is where you place the instructions to the computer Procedures and functions Tasks that you can have the currently selected object do The world – Meaning you will see the smaller version of your world. Procedure – It is a part of computer program that performs a specific task. Function – Function is a type of procedure. The difference between a function and procedure is that function returns a value/information and a procedure performs a task but does not return any value/information.

6 Adding new objects In order to add a new object to our world, we click the Setup Scene button. You will then see the Gallery. The Gallery contains many objects you can use. There are bipeds (things with 2 feet), quadrapeds (things with 4 feet), flyers (birds), swimmers (fish), transport classes (cars, boats, planes, etc.), and props

7 Deleting objects What if you add an object to your Alice world, but decide you don’t want it. If you want to get rid of the object, move your mouse to the object and click on it with the left button. Then hit the right mouse button and you will see a menu. One of the options is delete. You should move the mouse to this option and click with the left button

8 Moving objects around See Choose
When you click on the Setup Scene button and select an object, on the right you will see the properties of the object. See At the top, you will see four button. If you want to turn an object around, choose Rotation. Choose If you want to move an object around, choose Translation. If you want to change the size of an object, choose Resize.

9 Procedures vs Functions
There is a difference between procedures and functions. A procedure is a task that is performed. It doesn’t give you any information. A function is a task that gives you information. You can only drag procedures into the code area

10 Do together and Do in order
There are some tasks that we can have the computer do at the same time as other tasks. For example, we could have an object jump and walk at the same time. There are some tasks that have to be done in order. For example, moving an object to the left before it moves up.

11 Directions There are usually 6 directions you can have an object move
Left Right Up Down Forward Backward Remember that when we tell an object to move in a direction, it will move in what it thinks the direction is. For example, if we tell an object to move to the left, it will move to its left

12 Making a bunny jump over a wolf
As a first task, we are going to create a new world and add a bunny and a wolf to it and have the bunny jump over the wolf

13 Making a character move their arms and legs
If you look at the drop down list that has all of the objects in the world, some of them will have an arrow to the right. If you move the mouse to the arrow, you will see that this brings up a menu that has the joints of an object. If the object is a biped, then if we want to control the arms and legs, then we move the shoulders and hips

14 Making a character do jumping jacks
For a second task, we will try to make a character do jumping jack Click on File, and click the MyProjects tab and choose 2ndgradehollatemplate.


Download ppt "Programming using Alice 3"

Similar presentations


Ads by Google