Mobile GameDevelopment using Flash Lite - Presentation Transcript
Game Porting in Flash Lite 1.1 Porting of game Balancing Mathai by Csharks by Juwal Bose
Versions of Flash Lite
1.x – Most wide spread
2.x – Most capable
3.0 – For upcoming hand sets
Limitations
Screen resolution
Color depth
Processor power
Memory
Sound reproduction
Flash version support
Key pad layout / Controls
Our scenerio
Already have the game in flash AS1/2
We will build for Flash lite 1.1
Nokia S60 – 176 x 208
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
Tools Required
Flash – mx2004, v8, cs3
Adobe Device Central CS3
Flash Lite 1.1 CDK
Flash Lite Device
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
Gradients
Optimizing code
Use small variable names
Reuse variables
Reduce nested loops
Flash lite 1.1 is optimized
Design changes
Static 5 levels
Pre animated graphics
Left/Right arrow controls with enter key
Extensive use of movie clips and an invisible button
The frames
6 frames labeled logo, menu, help, game, over and win
The frames cont…
Invisible button is placed out side the scene to take key presses
The frames cont…
The frame code on frame 1
The frames cont… Button code on help frame on (keyPress "<Enter>") { tellTarget ("/") { gotoAndPlay("menu"); } } Button code on game over and game win frames on (keyPress "<Enter>") { tellTarget ("/") { gotoAndPlay("game"); } }
The menu
A movie clip with 3 frames (labels s,h,c) is present with an invisible button having the code
0 comments
Post a comment