Game Development Reference
In-Depth Information
[source]
[classes]
...
[projects]
[stubgame]
Next, we are going to create two folders, each to hold a different version of our game. Why are
we going to do this? This topic is meant to support Flash game development with a variety of
tools. There are many popular methods to create Flash games with an assortment of tools and
code integrated development environments (IDEs). We are going to focus on two such tools in
this topic: the Flash IDE (the one with the library, timelines, drawing tools, and so on all combined
into a single tool) and Flash Develop (a very popular, free IDE made specifically for ActionScript
development). You can use any tool with this topic, but you will need to follow the documentation
specific to your own tool when setting up projects.
You will need to pay careful attention to linking the reusable code package structure to your
games, because linking may vary depending on the Flash code editor environment you are using.
Linking the package to a game is actually a very simple process, but it differs between the various
code IDE versions. Jeff does most of his Flash game development Flash Develop using the free
Flex SDK that Adobe provides. Steve, on the other-hand, uses the Flash IDE almost exclusively.
We have combined our efforts on all of the chapter games to bring you code that will work with
both a Flex SDK project and a Flash IDE project.
On that note, the next two folders you will create inside the stubgame folder are called flashIDE
and flexSDK . You don't have to create both for any project. You just need to create the one that
works with the tools you are going to use to create Flash games. Each is set up differently, so pay
attention to the specifics of the one you will be using the most.
You should now have a projects folder that looks like this:
[projects]
[stubgame]
[flashIDE]
[flexSDK]
The Flash IDE package structure
The Flash IDE package structure begins right inside the flashIDE folder. The package name is
very similar to the classes package you saw in the last section. The package structure will be
com.efg.games.[game name] . For instance, with the stub game we are going to create in this
chapter, the package name will be com.efg.games.stubgame . Go ahead and create those folders
now. You should have this package structure when you are complete:
[projects]
[stubgame]
[flashIDE]
[com]
[efg]
[games]
[stubgame]
[flexSDK]
Search WWH ::




Custom Search