Game Development Reference
In-Depth Information
Chapter 3
Creating Super Click
We have spent a good portion of this topic creating a game framework, but so far, we don't have
much to show for it. We will now create a simple game that makes use of the framework as a
demonstration.
Let's take a deep dive into our first example game, Super Click. It is a simple game that is similar
to many early Flash viral games. It is not original by any means, but the main point we want to
demonstrate here is how the Game and Main classes interact. To do this, we'll first discuss the
elements we need for the game in a simple technical design specification. Next, we will discuss
how we tie all of this together into a set of functions to actually create a game. Before we start
with the code, we will lay out a very simple technical design document for our game. This
document will be used to modify create a Main.as class for Super Click that extends the
GameFrameWork.as class. It will also be used to create the SuperClick.as class file that will extend
the Game.as framework class.
Search WWH ::




Custom Search