Game Development Reference
In-Depth Information
Test it!
If you have made it this far you, should have a ten-level post-retro blaster game. Test the build in
your publishing system of choice. The FrameRateProfiler should start up right away, and when it
is complete, you will be dropped into the simple title screen with the scoreboard off to the right.
Once you click through the screen buttons, the game will begin. Use the mouse to move. Your
ship will follow the mouse and automatically fire.
How is the frame rate running in the frameCounter under the scoreboard? Is the game running
sluggishly on your machine? You can go back to the FrameRateProfiler settings in Main.as and
adjust the profiler to test with more objects if the game is running too slowly. Adjusting the profiler
will help the game set the stage.quality and frameRateMultiplier to a lower setting.
Remember, you want to calibrate the profiled rate to the frame rate the game runs at on your
machine so that they match. This will ensure that the profiler will work on other's users' machines.
Summary
We have covered a lot of ground at a rapid pace in this chapter. We covered many optimizations
for blitted games that can also be applied to most other Flash games. We also created a new
time-based step timer, added pause and mute functionality to the framework, and finished yet
another complete game.
You should pat yourself on the back after this marathon session, but don't quit just yet. In Chapter
12, we will complete the framework by adding a preloader to both the Flex SDK and Flash IDE
versions of the Main.as class. We will also cover how to create and promote a viral Flash game.
Finally, we will explore adding Mochi Ads and Mochi high scores to your newly completed creation.
Search WWH ::




Custom Search