Setting up your Starling scene


show more Setting up your Starling scene provides you with in-depth training on Developer. Taught by Lee Brimelow as part of the Building Flash Games with Starling show less
please wait ...

Setting up your Starling scene

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 SW...

Setting up your Starling scene
Video duration: 6m 8s 2h 57m Intermediate

Viewers:

Setting up your Starling scene provides you with in-depth training on Developer. Taught by Lee Brimelow as part of the Building Flash Games with Starling

please wait ...