Game Development Reference
In-Depth Information
Creating the game project in the Flash IDE
By now, these steps to create the project in the Flash IDE should look very familiar to you:
1.
Start up your version of Flash. We are using CS3, but this should work exactly the
same in CS4 and CS5.
2.
Create a .fla file in the /source/projects/driveshesaid/flashIDE/ folder called
driveshesaid .
3.
In the /source/projects/driveshesaid/flashIDE folder, create the package structure
for your game: com/efg/games/driveshesaid/ .
4. Set the frame rate of the Flash movie to 30 FPS. Set the width to 384 and the height
to 404.
5.
Set the document class to com.efg.games.driveshesaid.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.
Now, we need to add the framework reusable class package to the class path for the
FLA file. In the Publish settings select Flash ActionScript 3 Setting.
8.
Click the Browse to Path button and find the /source folder we created in Chapter 2 for
the package structure.
9.
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.
Creating the game project in the Flash Develop
Here are the steps for creating the project in Flash Develop:
1.
Create a folder inside the /source/projects/driveshesaid/ folder called [flexSDK] (if
you have not already done so).
2.
Start Flash Develop and create a new project; select Flex 3 Project, and give it the name
driveshesaid. The location should be the /source/projects/driveshesaid/flexSDK
folder, and the package should be com.efg.games.driveshesaid .
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.
Now, we need to add the class path to the framework to the project. Go to the Project
Properties Classpaths menu item.
4.
Click the Add Class Path button. 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