Join Lee Brimelow for an in-depth discussion in this video Creating and importing bitmap fonts, part of Building Flash Games with Starling.
- View Offline
So when it comes to rendering text in Starling, you have a couple of different options.…First, you can just use regular system fonts that every user has on their system…and this could be Arial or any of those common fonts.…And Starling will actually render that into a texture and put it on the GPU for you.…So this is good if you have text that isn't going to be changing very often.…But in most cases what you are going to want to do is to create a bitmap font,…and this is essentially identical to the idea of a sprite sheet where you have…all of the glyphs for the characters that you are going to want to use, packed…into a single image and then there is going to be this data file that says for…instance, if I want the letter D, it's going to go to this X and Y in the sprite…sheet and pull out the correct area.…
So when it comes to creating bitmap fonts, I am going to be showing you how to…use a tool called GlyphDesigner, but that is a Mac only tool.…If you are on Windows, there is a tool called Bitmap Font Generator, which you…
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