Game Development Reference
In-Depth Information
Creating the Hello World sample
Let us now explore the Hello World sample that is included in the Pulse package.
The Hello World sample and the rest of the samples rely heavily on the game
screen management framework package, PulseUI, which is also included in the
Pulse package along with the source code. In this chapter, we will focus on the code
contained in the Hello World sample and how the sample makes use of the PulseUI.
At this point, we will assume that you have the SDK downloaded, have successfully
fired up the servers, and test drove the samples as described in Chapter 1.
In order to explore the Hello World sample, we first need to create a project in Flash
Builder—all the required source files already exists in the sample folders. The Hello
World sample does the following: create a room or join an existing game room, then
add, remove, or modify a game state—the changes done on one client instance are
then reflected on all other clients that are in the same room.
Think it is too much for a Hello World sample? It is not! These are just the basic
functionalities for any multiplayer game. Moreover, we don't need to write the
code for every bit of functionality because we heavily rely on Pulse SDK to do all
the dirty work.
Setting up the project
Fire up the Flash Builder 4 IDE and let us start by creating an ActionScript project
called Hello World:
1.
From the main menu, navigate to File | New | ActionScript Project . You
will see the following screenshot. Enter a project name HelloWorld or any
other name of your choice.
 
Search WWH ::




Custom Search