Viewers: in countries Watching now:
In Flash Professional CS5: Creating a Simple Game for Android Devices, author Paul Trani shows how to translate existing Flash skills from the web to mobile devices while designing a game in Flash and publishing it as an AIR for Android app. The finished application includes collision detection, random enemy creation and movement, shooting capabilities, multiple levels, and even a high score screen. This course also goes beyond game functionality and shows how to use mobile capabilities such as the accelerometer and gestures to control graphics, use the hardware keys to activate menus, and also how to optimize content so it plays well on mobile devices. Also included are instructions for distributing an app through the Android Market. Exercise files are included with the course.
Now comes the exciting part, taking your application, your APK file, and uploading it to the Android Market. And it's quite easy, to be honest. All you have to do is go to developer.android.com. Off to the side, you'll see this Publish where we're actually going to publish to the Android Market, and it's an open service, so it's actually free to upload as many apps as you want. Okay, so it's free to upload them. Now, there is one thing I need to warn you about, because as I click on that link, I can see various apps, but right down here at the bottom, this is where you become a developer.
So you click here and then you fill out a form. I have already done that, but the one thing you'll need to know about becoming an Android developer is that it will cost $25, okay. Its 25 bucks for a year, and again, that means unlimited applications you can upload. And with such a market growing, all these various Android devices being released almost weekly, it makes it a really good investment. So again, once you pay that, you can go ahead and upload as many apps as you want.
I already have a couple in here, okay. And not only is it doing some tracking, but notice that they are free as well. So I get some stats. But what I want to do is I want to go ahead and upload the application I have made. So I am going to select Upload Application. Now right in here, it's basically fill-in-the-blank. So again, I want to take that APK file and I want to upload it. So I want to select Choose File. I'm going to go to my Desktop. I'm going to go into the AndroidSDK, and the last place I had it was in the platform-tools folder, and here is my Invaders.apk file.
So I'll click Choose, and then I'll click Upload. All right, there it is. Notice that it does have an icon. There is actually a couple different icons, the VersionName, different things. There is 1 permission that we warn the user about, which means that there is that wake lock call, so the screen is not going to go to sleep so they could still play the game. All right, so it will give you any sort of warnings just for you to be aware of, just to make sure you have those in there as well. All right, next steps are the screenshots.
Okay, so you can upload screenshots that appear when you see the description of your game. So I'm going to go ahead and choose a couple of those. In my Assets folder, in Graphics, I'm going to go ahead and choose those particular files. These screenshots for my app are these 480 x 854 images. So they're JPEGs--they could also be PNG files--but they're just quick representations of the game play and the first screens.
So I'll choose that one. I'll upload it. There it is. I'll go ahead and add another. Choose File and add that second screen as well. All right, so there are my screenshots. Next step the high-resolution application icon, and again, this is a 512 x 512 image. It could be a PNG or JPEG, so I just go ahead and create those files. Again, they're already created. Here it is, this 512 image. That's what it looks like.
Choose that. Click Upload. The promotional graphic which will be used, say for instance, on that previous page I have shown, I want to probably make that as well and upload it, so that's 180 x 120 image. And notice that a lot of these images are pretty similar, just in different sizes and different crops. Click Upload and this feature graphic is also optional, but again I have made one, so I'll just go ahead and upload that large image.
It's actually 1024 x 500. Choose it. Click Upload. All right, so I have all my graphics uploaded. I can have a promotional video. I want to opt out promoting the application, say for instance, if it's for select group of people, I might consider checking that box, but really want this to be free for everybody. And now I can jump in here to the Listing details. So again, I'm supplying to the Android Market the various details of this application, Doodle Galaxy Invaders description.
All right, a little description. Pretty much they just need to know that it's like a space-invaders-type game, but I'd want to talk it up as much as possible in here in this description, just not too much text is all. Any recent changes, again, if this is the 2.0 version and I've added, say for instance, more aliens, I might want to describe that, and then promotional text. There is my promotional text. Application Type, it could be an application, but of course this is a game, so I am selecting Game.
Category, well, again, I got plenty in here. This is just a casual game. That was the purpose of it, for a user just to play while they standing in line waiting at the bank, or whatever the case may be. Price is going to be free. Now I can set up a merchant account, and I would go ahead and do that and Google Checkout would be used. But what I need there is I would need a text ID and some other technical information. But in this case, since I want everybody have this game, I want to go ahead and keep it as free. Now, a good idea is to have potentially like a lite version of a game L-I-T-E and then the full version that you'd actually charge for.
So you can do both with one game, but in this case this one's just going to be free. Okay, Copy Protection is going to be off, so anybody can copy it as many times as they want. The content, well, this is pretty much for everybody, and locations, there is no location issue, because there is really not a whole lot of text in it. I think anybody, regardless of where you live or what language you speak, should be able to play this game. Lastly, we have the contact information, web site, email, as well as phone number.
You can enter in, and this came from my profile, so when you first sign up as a developer, that's where this information will come from, and you can always change it. All right, so Android Content Guidelines, those are additional guidelines just saying you adhere to all the basic rules and suggestions as far as the graphics go and the content as well. So again, this is a free market, so these are just guidelines. Overall you're not going to have a problem at all submitting your app, but it does meet the Android content guidelines, and I want to check this last check box as well.
I'll click Publish, and there it is, Doodle Galaxy Invaders. Currently is not rated, nor has been downloaded. So as you can see, it's really easy to upload a game, or pretty much any mobile app, to the Android Market.
There are currently no FAQs about Flash Professional CS5: Creating a Simple Game for Android Devices.
Access exercise files from a button right under the course name.
Search within course videos and transcripts, and jump right to the results.
Remove icons showing you already watched videos if you want to start over.
Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.
Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.