Game Development Reference
In-Depth Information
The Flash IDE's file structure looks like this:
[source]
[projects]
[stubgame]
[flashIDE]
[com]
[efg]
[games]
[stubgame]
StubGame.as
And the structure for the Flex SDK (using Flash Develop) looks like this:
[source]
[projects]
[stubgame]
[flexSDK]
[bin]
[obj]
[lib]
[src]
[com]
[efg]
[games]
[stubgame]
StubGame.as
Here is entire code listing for this class:
package com.efg.games.stubgame
{
// Import necessary classes from the flash libraries
import flash.display.Sprite;
import flash.events.MouseEvent;
import flash.events.Event;
import com.efg.framework.Game;
import com.efg.framework.CustomEventLevelScreenUpdate;
import com.efg.framework.CustomEventScoreBoardUpdate;
/**
* ...
* @author Jeff Fulton
*/
public class StubGame extends Game {
//Create constants for simple custom events
public static const GAME_OVER:String = "game over";
public static const NEW_LEVEL:String = "new level";
private var clicks:int = 0;
private var gameLevel:int = 1;
private var gameOver:Boolean = false;
public function StubGame() {}
Search WWH ::




Custom Search