Mobile GameDevelopment using Flash Lite

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    1 Group

    Mobile GameDevelopment using Flash Lite - Presentation Transcript

    1. Game Porting in Flash Lite 1.1 Porting of game Balancing Mathai by Csharks by Juwal Bose
    2. Versions of Flash Lite
      • 1.x – Most wide spread
      • 2.x – Most capable
      • 3.0 – For upcoming hand sets
    3. Limitations
      • Screen resolution
      • Color depth
      • Processor power
      • Memory
      • Sound reproduction
      • Flash version support
      • Key pad layout / Controls
    4. Our scenerio
      • Already have the game in flash AS1/2
      • We will build for Flash lite 1.1
      • Nokia S60 – 176 x 208
    5. Case with Flash Lite 2.X
      • We can directly port our code
      • Only Graphics optimizations needed
      • Less number of devices
      • Require higher version of flash IDE
    6. Tools Required
      • Flash – mx2004, v8, cs3
      • Adobe Device Central CS3
      • Flash Lite 1.1 CDK
      • Flash Lite Device
    7. Graphics Optimizations
      • Reduce the color palette
      • Reduce the size – 176 x 208
      • Optimize graphics in flash
      • Remove gradients used
      • Remove transparency used
      • Balance between vector and raster
      • Use PNG raster graphics
    8.  
    9. Gradients
    10.  
    11. Optimizing code
      • Use small variable names
      • Reuse variables
      • Reduce nested loops
      • Flash lite 1.1 is optimized
    12. Design changes
      • Static 5 levels
      • Pre animated graphics
      • Left/Right arrow controls with enter key
      • Extensive use of movie clips and an invisible button
    13. The frames
      • 6 frames labeled logo, menu, help, game, over and win
    14. The frames cont…
      • Invisible button is placed out side the scene to take key presses
    15. The frames cont…
      • The frame code on frame 1
    16. The frames cont… Button code on help frame on (keyPress &quot;<Enter>&quot;) { tellTarget (&quot;/&quot;) { gotoAndPlay(&quot;menu&quot;); } } Button code on game over and game win frames on (keyPress &quot;<Enter>&quot;) { tellTarget (&quot;/&quot;) { gotoAndPlay(&quot;game&quot;); } }
    17. The menu
      • A movie clip with 3 frames (labels s,h,c) is present with an invisible button having the code
    18. The game frame
      • Dynamic text box with variable name ‘level’
      • Mathai animation movie clip mathai
      • Hand movie clips hL and hR
      • A go movieclip for starting
      • The invisible button
    19. Game frame code lSTime = dT=lLTime=o; level = 1; mF = 20; sF = 10; dR = &quot;&quot;; dN = &quot;n&quot;; interval = 10000; tellTarget (&quot;go&quot;) { gotoAndStop(1); } tellTarget (&quot;mathai&quot;) { gotoAndStop(1); } tellTarget (&quot;mathai/clip&quot;) { gotoAndStop(10); } // stop();
    20. Mathai Clip frame code
    21. Button code on (keyPress &quot;<Enter>&quot;) { if (/:dN eq &quot;n&quot;) { /:dN = &quot;y&quot;; tellTarget (&quot;go&quot;) { gotoAndStop(2); } if (random(2) == 0 && /:dR ne &quot;l&quot;) { tellTarget (&quot;mathai/clip&quot;) { gotoAndPlay(_totalframes-_currentframe); /:dR = &quot;l&quot;; } } else { if (/:dR ne &quot;r&quot;) { /:dR = &quot;r&quot;; } } tellTarget (&quot;mathai/clip&quot;) { play(); } // /:lSTime = getTimer(); // } }
    22. Button code continued on (keyPress &quot;<Left>&quot;) { if (/:dN eq &quot;y&quot;) { tellTarget (&quot;hL&quot;) { gotoAndPlay(2); } if (/:dR eq &quot;r&quot;) { fscommand2(&quot;StartVibrate&quot;, 1000, 0, 0); //change /:dR = &quot;l&quot;; tellTarget (&quot;mathai/clip&quot;) { gotoAndPlay(_totalframes-_currentframe); } } else { tellTarget (&quot;mathai/clip&quot;) { gotoAndPlay(_currentframe+1); } } } }
    23. Details
      • Adding levels
      • Time based level up on button events
      • Check out source
    24. Visit us
      • www.csharks.com
      • www.csharksgames.com
      • www.manoramaonline.com/children
      • A lot more coming up this year
    SlideShare Zeitgeist 2009

    + juwalbosejuwalbose Nominate

    custom

    587 views, 0 favs, 0 embeds more stats

    Some information on developing flash games for mobi more

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 587
      • 587 on SlideShare
      • 0 from embeds
    • Comments 0
    • Favorites 0
    • Downloads 12
    Most viewed embeds

    more

    All embeds

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories