Presentation is loading. Please wait.

Presentation is loading. Please wait.

Programming Alice Alice is named in honor of Lewis Carroll’s Alice in Wonderland.

Similar presentations


Presentation on theme: "Programming Alice Alice is named in honor of Lewis Carroll’s Alice in Wonderland."— Presentation transcript:

1 Programming Alice Alice is named in honor of Lewis Carroll’s Alice in Wonderland

2 What is Programming? Writing complete instructions describing steps a computer should follow to carry out some task A program is written in a specific language such as C, Java, or Alice A computer system is used to execute a program

3 Alice Alice is an object-oriented programming language specifically designed to teach computer programming concepts Developed by Carnegie-Mellon Available as part of a freeware IDE

4 Getting Alice If necessary, download the Alice system www.alice.org/downloads On a Windows system, you will have to extract the Alice folder and create a shortcut to the Alice.exe file

5 Alice Environment Alice Virtual World A 3-D environment containing objects that are controlled via Alice programming instructions Virtual World Creation A Template forms the backdrop for each world Objects are added to the world Code is written to control the world

6 A New World Object Tree World Window Details Area Events Area Editor Area

7 Object Gallery A collection of pre-made classes for use in your virtual world Objects are built from the class template

8 Objects Instantiated from 3-D Models (class) Each has… height, width, and depth orientation (up, down, left, right, front, back) center (rotation point) position (relative to center of world) Height Width Depth Front Up Right Center

9 World Each world also has a center and orientation Green = Up Blue = Front Red = Right Object positions are relative to center of world distance

10 Point of View Position How far from world center to object along each axis (red/right, green/above, blue/forward) Orientation How much object is turned from the world's orientation

11 Properties Objects have properties The collection of property values represents the state of the object Animation occurs when we change an object's properties over time Proprties of the object named shakira

12 Scene Building Choose template Alice provides 6 basic templates Add objects from the gallery Local or Web Gallery Search or Browse Position and size objects to create the initial scene

13 Positioning Objects Select Object Bounding box and orientation axes are visible Object name is highlighted in the Object Tree Choose mouse interaction

14 Move Freely Drag to change red and green positions (object move in fixed horizontal plane) Shift+Drag to move object vertically Ctrl+Drag to turn left or right Shift+Ctrl+Drag to tumble about object's center

15 Move Specifically Specialized moves are also possible using the alternate buttons Move Freely Move Up/Down Turn Left/Right Turn Forward/Back Tumble Resize Copy

16 Resize and Copy When Resize is selected, the mouse will make the object larger or smaller As the object moves further from the camera, it will automatically appear smaller Unselect after copying!

17 Delete and Undo Right-click on the object in the Object Tree and choose Delete You can also right-click the object directly The Undo and Redo buttons are convenient when you mistakenly reposition an object You can reposition the World This is usually accidental

18 Quad View Used to see the world from four perspectives Normal 3-D view Top, Side, and Front views In addition to the usual controls, a re-position and zoom tool are included for the top, side, and front view windows

19 Quad View

20 Done Adding Objects Click the Done button to return to the Programming view of the world You can still reposition objects in this view The mouse acts as if in the Move Freely setting

21 Camera You can position the camera using the camera's driving tools below the World Window Turn camera to the left or right Turn forward (tip lens down) Drive Forward or Backward Turn backward (tip lens up) Raise or lower camera Slide camera left or right

22 Saving Worlds The Save World action is located in the File menu Pick a location (Z drive?) Place your projects in a dedicated folder Choose a name for your world Make it descriptive


Download ppt "Programming Alice Alice is named in honor of Lewis Carroll’s Alice in Wonderland."

Similar presentations


Ads by Google