Join Lee Brimelow for an in-depth discussion in this video Setting up your Starling scene, part of Building Flash Games with Starling.
- View Offline
So in the last movie we created our basic Flash Builder ActionScript 3 project…which is going to serve as the basis for our game.…Now we want to modify this main Spacer class that is essentially our default…class that gets launched when we run the game.…The first thing I am going to want to do is to put in some SWF metadata up here, and this…is going to allow me to control the width, height, background color and frame…rate of our actual game.…So I am going to start putting that in and first thing I am going put in is the…width and our game is going to be 800x800, put in a height of 800.…
We are going to set the frame rate of our movie to 60 frames per second.…Now if you are used to regular Flash, you might think, wow!…That's a really fast frame rate, and you can now reliably use 60 frames per…second, again, because since Starling is running on the GPU we can get that…really fast performance.…And I am going to set the backgroundColor of my movie to black like that.…So now we have our SWF metadata set up.…
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.
- Downloading and installing Starling and Flash Builder
- Creating the project
- Creating the main game class, static assets class, and other classes
- Building the state machine
- Creating a static assets class
- Adding images
- Creating sprite sheets with Texture Packer
- Creating and importing bitmap fonts
- Detecting collisions
- Adding particle effects
- Adding sound effects