Start learning with our library of video tutorials taught by experts. Get started
Viewers: in countries Watching now:
Join Lee Brimelow in this project-style course that teaches how to build a Flash-based game with Flash Builder 4.6, Flash Player 11, and the Starling framework. Starling, a pure ActionScript 3.0 library for advanced graphics, extends Flash Player 11's support for the modern GPU (graphic processing unit) to enable visual presentations and games in the browser or as a mobile app.
Starting with installation and configuration of Starling and creation of a Flash Builder project, the course shows how to prepare and import graphical assets, create MovieClip classes from sprite sheets, manage various gaming objects, detect collisions, and add both particle and sound effects. The finished game can be deployed to any browser or mobile device that integrates Flash Player 11, which was released in September 2011.
So before we get started actually building things with the Starling framework, we first need to download it. Now Starling is an open-source framework that you can get at gamua.com/starling. And Gamua is the company that's actually created Starling. So from that page you can go ahead and click the Download button, and you can download a ZIP file directly from here, or you can actually go to the repository on GitHub, which is what we're going to do, so I'm going to click that, and it's going to take me to the Starling-Framework GitHub page.
Now if you're used to using Git you can definitely fork this or just clone it to your computer. We're just going to go to Downloads, and then I'm just going to click Download as zip, and this is going to download a ZIP file of the Starling framework, including things like documentation and also some samples. So I'm going to go into my Downloads folder here, and if we look inside of here, have a bunch of different of things like samples, tests, some utils, or if we go into the starling folder, into the source folder. These are obviously the source code files for the Starling framework.
So I'm going to go ahead and copy these three folders, and then go to my Desktop, and I'm going to create a new folder on the Desktop called code, and this is going to hold all of the source code that we're going to be linking to in this course. So now I have the Starling classes in here and I'm able to start using them. Now there is a couple of other things that we're going to be using as well. So if we go back to the main Starling page, we can go to this Help button, and there's a bunch of really good helpful resources about Starling, and another thing that's really nice about Starling is that it's extensible, and people are already writing a lot of extensions for Starling.
So if we go down to this Wiki entry under extensions, we can see some of the extensions that are currently under development, and one of them that we're going to be using is this Particle System, extension. So I'm going to go ahead and click that, and we can see an example, and this is an example of that particle extension being rendered in Starling. Now I'm going to go to the GitHub repository for that particle system, and much like I did before, I'm going to click on Downloads, and then Download as zip.
And now I'm going to go back to my Downloads folder, and inside of here if we look under the source folder, we have a starling directory, and an extensions directory. So this I'm actually going to copy and paste into my main source folder that's on the Desktop. So I'm going to copy the extensions folder, go back to the Desktop, under code > starling, and then paste that in. And I now have that particle extension linked in with the rest of my Starling source code files.
So one other thing that we're going to using is an object pool class, and once we start building our game, I'll explain why it's so important to use that, but the class we're going to be using is one that I have actually created, and if we go to my GitHub page, just github.com/ brimelow, and then go to the ActionScript repository, there is only thing in there right now and we're just simply going to download that as well. So I'm going to say Download as zip, and again go to my Downloads folder, and in that com directory, we have a leebrimelow directory. I'm going to go ahead and copy that, and then go to my main source code folder on the Desktop, go into the com directory and then paste in that folder.
So we now have that StarlingPool class in there as well. So those are all the major source code libraries that we're going to going to be using, so just again, make sure that you incorporate all of those into a folder somewhere on your computer so that we can link to them from Flash Builder.
There are currently no FAQs about Building Flash Games with Starling.
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.