Test the Whirled SDK

From Whirled

Jump to: navigation, search

This is part of the Setting up your programming environment tutorial.

Contents

Download/Test the SDK

Download the latest SDK from http://wiki.whirled.com/Whirled_SDK

Unzip the SDK you downloaded in your chosen directory. This should create a whirled directory with a few subdirectories.

For example:

 robert@localhost:~/code$ unzip whirled_sdk.zip 
 [ files... ]
 robert@localhost:~/code$ ls whirled
 README.html	dist		examples	newproject.bat
 build.xml	docs		fatserver.bat	src
 contrib	etc		lib		templates

Run One of the Example Games

Now that you have your SDK all set up, you can make sure everything is working by running one of the example games.

Windows

Navigate to the whirled\examples\games\reversi folder and double click the build.bat file to build and run the sample game.

Unix and Mac OS X

Build and run the game from the command line:

 robert@localhost:~/code$ cd whirled/examples/games/reversi
 robert@localhost:reversi$ ant -Dplayers=2 test

Configure SDK Location

This will first pop up a dialog asking you to tell the Whirled SDK where to find your flex_sdk_3 directory:


Image:FlexSDK Location.png


Select the directory where your flex SDK 3 is install.


Image:FlexSDK_dir.png


After you have configured these once, you will not need to do it again.

Configure Standalone Player Location

On Linux and Windows platforms, you will have to select the location of your debug flash player executable. Note you will not have to do this for a mac installation.

Image:Need player info.png

Image:Need player chooser.png

After you have configured these once, you will not need to do it again.

Compile and Run the Game

You should then see it compile the game, then run a test server and then see the Flash player pop up displaying the game client.

Image:Reversi screenShot.png

If you see the game client then everything is fully operational. Otherwise look at the output on the command line for any error messages which might indicate that something is misconfigured.

Next Step

Now you can move on to the Hello Whirled Tutorial.

Personal tools