Join Lee Brimelow for an in-depth discussion in this video Starling optimization tips, part of Building Flash Games with Starling.
- View Offline
So now I want to take a couple of minutes and just go over a couple of…optimizations that we can do to our game, and also just in general how you might…want to optimize Starling content.…So first of all Starling has blend modes associated with it on display objects,…so if you have, let's say, a background image that doesn't have any alpha in it,…you don't need to worry about that, you can set your blendMode to none, and you…will get some performance increase from doing that.…So in our background class where I have these two image objects, what I'm going…to do is first set sky1, I'm going to set its blendmode = and get a constant…out of the Starling.display.BlendMode class, and we are simply going to set it to BlendMode.NONE.…
And I'm going to do that also for sky2, and that's just a little thing but will…give you some performance increase because again we don't need to worry about…blend modes on those background images.…Now another area which we can optimize quite a bit is in our CollisionManager…
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