Game Development Reference
In-Depth Information
is display whatever information you tell it to at runtime.
This becomes invaluable when attempting to watch something as
complicated as a game execute in real time. You can have
Flash trace out entire sequences of logic to determine where a
bug is occurring, and you can use it to display messages to
other developers who might be working with your code. Though
traces work through the Output window in Flash, it is possible to
capture them inside Firefox using an extension called FlashTracer
and the debug version of the Flash player. Links to both can be
found on this topic
s Web site. It works well for general
debugging, but when a game works fine in Firefox but not
other Web browsers it won
t be of any help. Another option is to
create even more robust tools you can use in any environment.
ll explore how to create and implement these tools in
Chapter 17.
Flaw: Lack of Built-In Game Libraries and Tools
Up until this point, the shortcomings of Flash I
ve outlined are
ones that affect developers of all kinds of Flash content. Because
games tend to need more specific toolsets and lean toward the end
of customized development, Flash lacks a number of code libraries
that are readily available on other platforms. Examples of this type
of library could be a physics simulator for doing realistic physical
collisions or a sound manager that easily handles fading/panning
sound effects in real time. These libraries must be written from
scratch, which means they do not benefit from the speed boost of
being implemented directly inside of Flash.
Figure 2.5 The FlashTracer
extension running inside
Firefox 3.
Search Nedrilad ::

Custom Search