Uploaded on

This is the last in a set of prepared lectures used for IT 7220, Multimedia Games for Education. The companion text for Flash game reference is ActionScript 3.0 Game Programming University by Gary …

This is the last in a set of prepared lectures used for IT 7220, Multimedia Games for Education. The companion text for Flash game reference is ActionScript 3.0 Game Programming University by Gary Rosenzweig. This section deals with game frameworks for quiz and trivia games.

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
No Downloads

Views

Total Views
1,123
On Slideshare
0
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
22
Comments
0
Likes
3

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. TRIVIA/QUIZ GAMES IT 7220 - April 13, 2009 Monday, April 13, 2009
  • 2. AGENDA Schedule Update/Reminders Rosenzweig Chapter 10 Working with XML Files Trivia Games (simple, deluxe, images) Lab Monday, April 13, 2009
  • 3. SCHEDULE This session concludes the prepared lecture part of course Next week is devoted to Lab and preparation of your presentations Presentations scheduled for April 27 Don’t forget Reflection Paper due on May 4 Monday, April 13, 2009
  • 4. XML IN FLASH eXtensible Markup Language Provides a simple format for exchanging data between systems Examples used include nodes, child nodes, and attributes Data for an XML object may be embedded directly in Action Script; more common method is to read from an external file Couple of examples: xmlExample.fla; xmlimport.fla Monday, April 13, 2009
  • 5. FLASH TRIVIA GAMES Three Trivia Games are covered in chap 10: Simple Quiz Game Deluxe Trivia Quiz Picture Quiz Monday, April 13, 2009
  • 6. SIMPLE QUIZ GAME TriviaGame.fla - basic trivia game is just a series of questions 10 questions and answers are stored in an external XML file - trivia1.xml (hint and fact nodes are also included, however are not used in this version of game) The game is built in two frames (even though the book says three) Questions appear in order although answers are shuffled Monday, April 13, 2009
  • 7. SIMPLE QUIZ GAME (CONT.) Uses URLLoader and URLRequest objects Game elements are held in a single Sprite object gameSprite: questionSprite answerSprite gameButton Game score is displayed on bottom of screen Monday, April 13, 2009
  • 8. DELUXE TRIVIA QUIZ TriviaGameDeluxe.fla - adds additional game elements A time limit for answering questions Display of hint Updated scoring accounts for time and whether hint is used Display of factoid adding to educational value Uses question bank - trivia2.xml Selects 10 questions from a pool of 42 Questions and answers are randomized Monday, April 13, 2009
  • 9. PICTURE QUIZ PictureTriviaGame.fla - variation on Simple Quiz Game Allows for display of text or pictures for answers, using a 2x2 grid formation instead of 4 lines trivia3.xml - XML file uses a “type” attribute in the question and answer nodes to specify either text or file (picture in swf file) Monday, April 13, 2009
  • 10. LAB Work in Teams Monday, April 13, 2009