Create games

Whirled games are developed in ActionScript 3 (AS3) either using the standalone compiler or the Flash 9 Authoring Tool. This documentation assumes a working knowledge of these technologies, but resources are listed below to learn more about Flash and ActionScript.

Getting Started
For the basics of integrating a single player game with Whirled, start here:
 * Porting a single player game (ActionScript tutorial)

For the all the juicy details, check out our API overview:
 * Whirled Games API Overview

Then check out more detailed documentation and tutorials below.

{|
 * valign="top" width="50%" style="padding-right: 10px"|
 * valign="top" width="50%" style="padding-right: 10px"|

Documentation
Whirled APIs
 * Whirled Games API Overview
 * Whirled ASdocs and docs to helpful game APIs in our contrib section
 * Handy index for GameControl
 *  Whirled game creation FAQ

AS3
 * http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/
 * http://labs.adobe.com/wiki/index.php/ActionScript_3

There are also numerous paper books available on the subject.


 * valign="top"|

Tutorials

 * Using Adobe Flash CS3 to build games
 * Setting up your programming environment
 * Hello Whirled: making your first program in AS3
 * How to build a multiplayer text game: part 1, part 2, part 3, part 4
 * How to write a multiplayer server based game
 * Already have a single player AS3 game? Port it to Whirled.
 * Create and sell game packs.
 * Persisting data - If you need to save information about your game.
 * Awarding coins - add virtual currency payouts to your game.
 * Awarding prizes - incorporate prizes into your game for better payout and gameplay.
 * Awarding trophies - incorporate trophies into your game for better payout and gameplay.
 * Upload your game and options for games - includes information on how to sell your game's launcher & publish your game to the public
 * Prevent cheats - how players easily cheat, and some basic prevention
 * }

Code Examples
Learning by example is the easiest way, so make sure to check out our many game examples on our SVN server. Please note that in order to reduce the size of the SDK download, some of our bigger games, such as UnderWhirledDrift and treehouse defense, sit under a different directory.

Development Tools
Note that while Whirled uses the free Flex SDK and the optional Flex Builder as an IDE, Whirled does not support Flex components or MXML.

Writing a Server class for your game
Starting with SDK 0.33, Whirled supports the running of ActionScript server agents for your game. This is more complex to code, but benefits include:
 * Consolidation of logic for multi-player games
 * Lower latency
 * More robust in the face of unreliable browsers

You can follow this tutorial to make your first server based game.

AVR games
AVRGs are games that take place in Whirled rooms.

Feedback
Have you created/ported a game for Whirled? We would love to get your feedback on your experience.

Media Resources

 * http://www.flashkit.com/soundfx/
 * http://www.stonewashed.net/4.html
 * http://freesound.iua.upf.edu/

Other Links

 * Game tutorials
 * Non-exclusive license games
 * Whirled Contrib Submission Guidelines
 * Embed Whirled games on websites