Join Lee Brimelow for an in-depth discussion in this video Creating a static assets class, part of Building Flash Games with Starling.
- View Offline
So now that we have our basic game structure created, we need to turn our…attention to the assets in which we are going to use in this game.…Now if you have access to the exercise files, if you look in that folder, you…will see there's a whole bunch of different types of assets ranging from…animation sequences, like here, we have this alien animation sequence, we have…sound effects, particles, fonts, and we need a way in which to manage those…inside of our game project.…So what I'm going to do is inside the exercise files, I'm going to copy all…of those assets to the clipboard and then go back to my Flash Builder project…and I'm going to create a new folder at the root of my project. So I'm going to…right-click, create a New > Folder, and I'm going to call this folder assets,…and then I'm simply going to paste those assets into that folder so that we have…them inside of this assets folder.…
Now in our project we are going to create a class that's specific job is to…manage our assets for us.…
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