Game Development Reference
In-Depth Information
Figure 6-7. Export PNG Sequence option in the Flash library
The result will be 10 . png files that can be brought into Texture Packer. You can then proceed to export the sprite
sheet assets for EaselJS. Let's put this into a working example. Listing 6-5 shows how bitmap text can be created using
the assets from Flash and Texture Packer.
Listing 6-5. Adding and Updating Bitmap Text Using BitmapText
var stage, scoreContainer, scoreTxt;
var score = 0;
var data = {
"images":["letters.png"],
"frames":[
[2, 2, 34, 41],
[34, 176, 22, 43],
[36, 45, 26, 41],
[34, 88, 24, 41],
[2, 45, 32, 41],
[34, 131, 22, 43],
[2, 174, 30, 41],
[38, 2, 24, 41],
[2, 131, 30, 41],
[2, 88, 30, 41]
],
"animations":{
"0":[0],
"1":[1],
"2":[2],
 
Search WWH ::




Custom Search