Game Development Reference
In-Depth Information
Figure 7-7. Iteration 6 game screen with enemy tanks moving toward the player
Integrating into the framework
Before we add the final touches to the game, such as projectiles firing from the player and enemy
tanks, explosions, levels, ammunition, and other pick ups, it is time to add the game into the
framework. To do so, we will be creating a Main.as file in the game-specific package structure.
We will also be modifying the Library class the TileSheetDataXML class we created in Chapter 6.
Integrating onto the Main.as framework class
As usual, we'll start by telling you the file paths for the new class for the Flash IDE:
/source/projects/notanks/flashIDE/com/efg/games/notanks]Main.as
and for the Flex SDK (using Flash Develop):
/source/projects/notanks/flexSDK/src/com/efg/games/notanks/Main.as
We are not going to discuss this class in full, as we have done so in earlier chapters. We will
highlight the major changes though, as we have added some new, unique code to handle playing
sounds on the title screen.
Search WWH ::




Custom Search