interactive multimedia
lab 2
Kevin Scott
Spring 2008
Spring 2008
DC Invaders
Directions:
- Turn your speakers on for the full experience.
- Click on the game to activate controls.
- Use left and right arrow keys to move.
- Use Space Bar or Up Arrow key to fire political issues at the candidate.
Game Rules:
- Holding the fire key down will fire off political issues at a rapid pace, however, because the issues are being typed on an old manual typewriter, the keys get stuck together if more than four issues are fired at once.
- As the number of candidate instances decreases, the sense of urgency in the campaign increases, and the pace of the candidate increases accordingly.
- If the candidate reaches the typewriter, it will be destroyed and you must obtain another one. 3 typewriter lives provided at the start of the game.
Game Construction:
- The game is built in Flash Action Script 3.0 using a document class as the game console.
- Individual objects in the game are built as classes:
- Invaders
- Score Board
- Missile
- Weapon
- The object classes that use images were written so that their constructors accept paths to the images that will be used for the object. This allows the game to be modified with different "actors" by changing the file path sent to the object
- When the game board is cleared of all candidates, a new level is initiated.
- When 3 lives have been lost, Game Over is displayed. Clicking anywhere restarts the game.
- In addition to calling methods, Custom Event Handlers are used to manage communication between objects.
- An array of political issues is constructed and then phrases are picked randomly, although no phrase will ever appear twice in a row.
- Rather than executing actions on key strokes, a handling algorithm was used to permit repeated execution when a key is held down.
Files: