Advertisement
Helium

ALICE project 4 review

Mar 12th, 2013
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.26 KB | None | 0 0
  1. Objective:
  2. Describe the concept of an event in computer programming
  3. List and briefly describe the NINE event types used in Alice
  4. Add an invisible object to mark a spot in an Alice world
  5. Create new Boolean and numeric properties for an object
  6. Create an event to move an object
  7. Create events to allow a user to control a moving object
  8. Create a billboard object and position it in an Alice world
  9. Create an event to make a billboard disappear
  10.  
  11. User Interface and Event-Driven Programming
  12. Graphical User Interface (GUI) is a combination of computer software and hardware that allows user to operate a computer by manipulating icons and menus on a computer screen, mostly commonly with a mouse that controls a pointer.
  13. Before GUI were developed, most common interface was Command-driven user interface, in which user operated a computer using commands.
  14.  
  15.  
  16. The use of a GUI on a computer requires Event-Driven-Programming.
  17. Event occurs whenever an event listener detects an event trigger and responds by running a method called event handler.
  18.  
  19. Event Listener -> Event Trigger -> Event Handler
  20.  
  21. Event Listener - a combination of software and hardware that continuously checks the computer system for an event trigger.
  22. Event Trigger - can be any activity or condition selected by the programmer, such as clicking on a mouse or pressing a key on the keyboard, it could also be a change that occurs in a computer itself, ex. when a countdown clock hits 0
  23. Event Handler - a method that is activated when the event trigger occurs. Ex. pressing "Ctrl + P" on keyboard will display Print page
  24.  
  25. Events are used in Alice to control objects while a world is playing. Some Alice worlds are:
  26. Narrative World, tells a story
  27. Interactive World, Using keyboard and mouse controls while the world is playing
  28. Mix of both, like a video game
  29.  
  30. Examining Events in an Existing Alice World
  31. BDE event type: when an event is triggered, the event handler has a beginning, during, and end
  32.  
  33. Nine event types in ALICE: (self explanatory)
  34. 1. When the world starts
  35. 2. When a key is typed
  36. 3. When mouse is clicked on something
  37. 4. When something is true
  38. 5. When a variable changes
  39. 6. Let mouse move ____
  40. 7. Let arrow keys move ____
  41. 8. Let mouse move Camera
  42. 9. Let arrow keys move Camera
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement