time-based animation games

13
TIME-BASED ANIMATION It 7220 - March 30, 2009 1 Monday, March 30, 2009

Upload: indiana-state-university

Post on 22-Jan-2015

449 views

Category:

Education


0 download

DESCRIPTION

As part of a course in MultiMedia design of games for learning. Course references "ActionScript 3.0 Flash Game University" by Gary Rosenzweig

TRANSCRIPT

  • 1. TIME-BASED ANIMATIONIt 7220 - March 30, 2009 Monday, March 30, 20091

2. AGENDASyllabus TimelineComments about Mid-TermTime-based AnimationAir Raid - Shooting GamesPaddle Ball - Bouncing GamesLab Monday, March 30, 2009 2 3. SYLLABUS TIMELINEI should have a design document from each team tonight Two more lecture periodsApril 6 - Word GamesApril 13 - Trivia Games 4 more labs, including tonight Projects/Presentations on April 27 No class meeting on May 4; Reection Paper due via Digital Dropbox or email Monday, March 30, 2009 3 4. MIDTERM COMMENTSWorth 20% of your grade for the course Approx half opted for take-home version of Part 2 Scores:100 - 4 93 - 1 99 - 1 91 - 1High: 100 98 - 4 90 - 1Low: 8097 - 1 89 - 1 96 - 1 80 - 2Mean: 94.6 95 - 3Median: 96.5No one is trending below an A- for the course Monday, March 30, 2009 4 5. MIDTERM PART-2 I saw at least 3 dierent ways to do this in ActionScriptIf you followed the rubric, you earned at least 75% credit, even if the Flash movie didnt run correctlyExamples of button navigation posted on Blackboard Week 4: stopAndPlayMC_Final.a Week 5: inputTextReturn.aLets take a look...Monday, March 30, 20095 6. TIME-BASED ANIMATION Rosenzweig Chapter 5 (example given in AnimationTest.a)Basic premise is to move objects at a consistent rate regardless of Flash player performanceMeans keeping track of the dierence in time between framesThis is accomplished using the ash.utils.getTimer classThe getTimer function provides time in milliseconds (i.e., 1000 mS = 1 Second)Monday, March 30, 2009 6 7. AIR RAID GAMEThe project game le AirRaid.a contains 3 movie clips:Airplane - 6 frames; 5 aircraft plus an explosionAAGun - 1 frame; image is moved horizontally using leftand right arrow keysBullet - 1 frame; bullets move horizontally, triggered byspace bar Game movie contains same three frame layout (into, play, gameover), scripts and buttons used in Deduction Game Monday, March 30, 2009 7 8. AIR RAID GAME CLASSES Game uses 4 classes:AirRaid.as - document class contains all game logic tocreate initial objects, check for collisions, and handlescoringAirplane.as - constructor class takes 3 parameters: side (leftor right), speed, and altitudeAAGun.as - left or right movement of the gun movie clipusing keyboard event listeners for detection of right andleft arrow keysBullet.as - similar to airplane class accept speed is appliedvertically instead of horizontallyMonday, March 30, 20098 9. PADDLE BALL GAMEThe same basic design arrangement as Air Raid and Deduction games including intro, play, and gameover frames in PaddleBall.aThere is a single document class le, PaddleBall.as; there is no constructor function as the game waits for the second frame, to startDierence in variables is the need to track velocity which is a combination of speed and direction Monday, March 30, 20099 10. PADDLE BALL GAME Arrays are used to keep track of the bricksCollision detection is more complicated as the ball must detect collisions with the bricks, paddle and the three walls, and respond appropriatelyPossible mods to this game include sound eects and dierent colors of bricksMonday, March 30, 2009 10 11. ROSENZWEIG OBSERVATIONSGames are becoming more complexGames are constructed in modules; requires up front design in determining where to place codeGames build on knowledge of earlier examplesRosenzweig breaks it down whenever a new concept is introduced and provides decent comments in codeBe sure to pay attention to hints for testing and debugging, for example the AirRaid test class on page 164Monday, March 30, 2009 11 12. ROSENZWEIG NEXT 2 WEEKSChap 9 - Word GamesChap 10 - Trivia/Quiz GamesAre groups looking at other games from Rosenzweig like puzzles (chap 6), direction and movement (chap 7)?Does each team have a game strategy or mod mapped out which will produce a nal product in 4 weeks? (if not, we denitely need to talk) Monday, March 30, 200912 13. LAB Group work Monday, March 30, 2009 13