Game Development Reference
In-Depth Information
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 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 click the Settings button.
8.
Then, 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]
[notanks]
[flexIDE]
[com]
[efg]
[games]
[notanks]
Creating the No Tanks! game project in Flash Develop
Steps to create the No Tanks game in Flash Develop
1.
Create a folder inside the /source/projects/notanks/ 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 notanks. The location should be the /source/projects/
notanks/flexSDK folder and the package should be com.efg.games.notanks .
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 Classpath button.
4.
Next, find the /source we created earlier, and select the classes subfolder.
5.
Click the OK button and then the Apply button.
6.
Change the size of the output and frame rate by selecting the Project Properties
Classpaths menu item. Set the Frame Rate to 30, the width to 640, and the height to 500.
Here is the folder structure for the Flex SDK version (made with Flash Develop).
Search WWH ::




Custom Search