/** * _ _ * __ _ __ _| |_ ___| |__ __ _ * / _` |/ _` | __/ __| '_ \ / _` | * | (_| | (_| | || (__| | | | (_| | * \__, |\__,_|\__\___|_| |_|\__,_| * |___/ */ /** * @copyright Copyright 2010 Netlog NV * @link http://www.gatcha.com/downloads/multiplayer_as3_example_game/ * @license http://www.apache.org/licenses/LICENSE-2.0.html * */ // // Gatcha Multiplayer example for AS 3.0 with SmartFox // // // About this example // This is a basic remake of the classic arcade Pong but for multiple players (2). It shows the basic GameEvents that need to be dispatched in order to start a multiplayer game on Gatcha. You control the lower paddle with your left and right keys. Bounce the ball back and forward until you or the opponent misses 10 times. Remember that this game serves as a basic example. It has 4 classes: 1. Main.as - This is the main entry point to the game and is launched from the fla root. 2. Title.as - This is a title screen showing the game title and a start button. 3. Game.as - This holds the game logic. 4. SmartFoxManager.as - This holds logic for connecting and managing SmartFox // // Prerequisites // - Actionscript 3.0 knowledge for client side programming. - Actionscript 1.0 or Java knowledge for server side programming. - Installed and configured Smartfox server for local development. (Free version is available and will do just fine) - Adobe Flash CS3 or CS4. - The Gatcha swc library which can be downloaded here. - The Smartfox Actionscript 3.0 library which can be downloaded at http://www.smartfoxserver.com/labs/as3/. Both a swc library and source code is available. // // Documentation // Head over to http://www.gatcha.com/downloads/multiplayer_as3_example_game/ for more details. // // Comments, Questions or Feedback // If you have any comments, questions or feedback on this example, please get in touch: http://www.gatcha.com/about Happy coding!