CIS 3100 Introduction to Programming Using Virtual Reality

You may select an object by clicking that object in

Info icon This preview shows pages 13–16. Sign up to view the full content.

View Full Document Right Arrow Icon
You may select an object by clicking that object in the World window or by clicking its tile in the Object tree. Information about the currently selected object will be displayed in the Details area. Click each of the following elements, and you will see the listed results: The World tile in the object tree World’s details in the Details area The lake tile lake’s details in the Details area The IceSkater tile in the Object tree and then the properties tab in the Details area The properties of the IceSkater. The methods tab IceSkater’s methods The Functions tab the IceSkater’s functions. The Editor Area
Image of page 13

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Alice – Chapter 1 DRAFT June 10, 2013 pg. 14 of 38 The largest area of the Alice interface is the Editor area, which is to the right of the Details area. Here methods are assembled and edited by clicking and dragging tiles from other parts of the interface. The bottom of the Editor area has a row of logic and control tiles that can be used to put branching, looping, and other logical structures into the algorithms that will make up an object’s methods. Most of the time that you spend working with Alice will be spent using the Editor area. The Events Area The Events area in Alice is above the Editor area. This part of the interface shows existing events and is used to create new events. An event consists of a condition, called an event trigger , and the name of a method, called an event handler . Whenever the event trigger occurs, the event handler is called into action. For example, in the skater world, you might want the sound of a splash to occur if an ice skater falls through the ice. Falling through the ice would be the event trigger, and the method that makes the splash sound would be the event handler. Some events, such as causing a method to run when a key is pressed, provide user interaction for an Alice world. The flight simulator world that can be accessed through the examples tab is an interactive world that you might want to take a look at after finishing this chapter. Events are covered in detail in chapter three of this manuscript. Other Elements of the Alice Interface In addition to the main work areas that you have just explored, the Alice Interface also has two icons, three buttons, and a menu bar near the top of the screen. These are identified in figure 1-3. Alice Tools for Deleting and Copying
Image of page 14
Alice – Chapter 1 DRAFT June 10, 2013 pg. 15 of 38 The Trash can icon and the Clipboard icon near the top of the screen are used for editing Alice worlds. You can delete an item in an Alice world, such as an object or instruction tile, by dragging and dropping it in the Alice Trash can. You can also right-click on an object or tile, and select delete from the menu that appears. You can copy an item by dragging and dropping it on the Clipboard in the top-right corner of the Interface, and then dragging it from the Clipboard and dropping it in its new location. You can also duplicate a method tile by right-clicking on it and selecting make copy from the menu that appears, but this does not work with Alice objects.
Image of page 15

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 16
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern