Game Development Reference
In-Depth Information
4.
Set the frame rate of the Flash movie to 40 FPS. Set the width to 600 and the height
to 400.
5.
Set the document class to com.efg.games.blastermines.Main .
6.
We have not yet created the Main.as class, so you will see a warning. We are going to
create this later in this chapter.
7.
Next, add the framework's reusable class package to the class path for the .fla file.
First, in the Publish settings, select Flash ActionScript 3 in the ActionScript Version drop-
down, and then click the Settings button
8.
After that, click the Browse to Path button, and find the /source folder we created in
Chapter 2 for the package structure.
9.
Finally, select the classes folder, and click the Choose button. Now, the com.efg.
framework package will be available for use when we begin to create our game.
Here is the folder structure for the Flash IDE version:
[source]
[projects]
[blastermines]
[flexIDE]
[com]
[efg]
[games]
[blastermines]
Creating the Blaster Mines game project in Flash Develop
Follow these steps to create the Blaster Mines game in Flash Develop:
1.
Create a folder inside the /source/projects/blastermines/ folder called flexSDK (if
you have not already done so).
2.
Start Flash Develop, and create a new project. Begin by selecting Flex 3 Project and
giving the project the name blastermines. The location should be the
/source/projects/blastermines/flexSDK folder, and the package should be
com.efg.games.blastermines .
Do not have Flash Develop create a project folder automatically. Make sure the Create
Folder For Project is unchecked .
Click the OK button to create the project.
3.
Add the class path to the framework to the project by selecting the Project Properties
Classpaths menu item and clicking the Add Class Path button.
4.
Next, find the /source we created earlier, and select the classes subfolder.
5.
Click the OK button and then the Apply button.
Search WWH ::




Custom Search