I am in the process of creating a vertical scrolling space shooter game for deployment on mobile platforms using AIR. I've used some excellent tutorials online, video tutorials on Lynda and several books, including Game Programming University.
Something they all seem to gloss over are the various screens that will be used.
For instance, my game right now will use a splash screen, a main menu screen, a credits screen, a settings screen, a difficulties screen, an instruction screen, an end game screen and save/load screen... and a play game screen, where the actual game will be played.
I've created the screens as seperate frames in the main timeline with stop commands in between and code on each page (I know... bad!... but easy). So basically, they can navigate through the menus using buttons (mouseclicks, which will work with touchs as well) and when they are ready to play the game, they click on play and it will start using their settings or the default settings.
A couple of question for you:
1) Is there a better way to handle screens?
2) How do I pass data between them? I was thinking of storing it in shared object.
3) Any advice on optimizing the game graphics? I bogs down horribly with too many enemies/bullets on the screen.
4) Any other tutorials/sites/forums you would recommend? I really don't see much specifically for doing games in flash in AIR for mobile devices.
Thanks for any help!
John
1) Is there a better way to handle screens?
there are other ways but not necessarily better.
2) How do I pass data between them? I was thinking of storing it in shared object.
data defined on one frame is available on all other subsequently played frames.
3) Any advice on optimizing the game graphics? I bogs down horribly with too many enemies/bullets on the screen.
there's quite a bit of info available on this. google it/see 4.
4) Any other tutorials/sites/forums you would recommend? I really don't see much specifically for doing games in flash in AIR for mobile devices.
http://help.adobe.com/en_US/as3/mobile/flashplatform_optimizing_conten t.pdf
North America
Europe, Middle East and Africa
Asia Pacific