Game Development Reference
In-Depth Information
Listing 6-9 demonstrates the amount of code you are able to extract from the game logic when your sprites
and their data are written by Flash and included into your document. The inheritance process that was used in the
generated code is an important technique in game development, and we'll dive into it deeper in Chapter 8.
Figure 6-17 shows the three colored coins spinning on the stage.
Figure 6-17. Three animated sprites generated by Flash for EaselJS
These coin animations were exported for EaselJS from instances on the main stage. Alternatively, you can export
sprite sheets directly from the library, as shown in Figure 6-18 . This can be convenient if you have no need to alter the
movieclips for exporting.
Figure 6-18. Exporting sprite sheet from Flash library
 
Search WWH ::




Custom Search