Game Development Reference
In-Depth Information
/source/projects/blastermines/flexIDE/com/efg/games/blastermines/BlasterMines.as
And this is for the Flex SDK (using Flash Develop):
/source/projects/blastermines/flexSDK/src/com/efg/games/blastermines/BlasterMines.as
Creating the Blaster Mines class shell
The shell contains the class import section, variable definition section, and constructor functions
for the BlasterMines.as class file:
package com.efg.games.blastermines
{
import com.efg.framework.Game;
import com.efg.framework.GameFrameWork;
import com.efg.framework.BasicBiltArrayParticle;
import com.efg.framework.BasicBiltArrayProjectile;
import flash.display.*
import flash.events.*;
import flash.geom.*;
import flash.filters.*;
import com.efg.framework.BasicBlitArrayObject;
import com.efg.framework.BlitArrayAsset;
import com.efg.framework.CustomEventLevelScreenUpdate;
import com.efg.framework.CustomEventScoreBoardUpdate;
import com.efg.framework.CustomEventSound;
/**
* ...
* @author Jeff Fulton
*/
public class BlasterMines extends Game{
public static const GAME_OVER:String = "game over";
public static const NEW_LEVEL:String = "new level";
public static const STATE_SYSTEM_GAME_PLAY:int = 0;
public static const STATE_SYSTEM_PLAYER_EXPLODE:int = 1;
private var systemFunction:Function;
private var currentSystemState:int;
private var nextSystemState:int;
private var lastSystemState:int;
//** game loop
private var gameOver:Boolean = false;
//leveldata
private var levelColors:Array = [NaN, 0xff0000, 0x00ff00, 0x0000ff, 0xffff00,
0x00ffff, 0xffaa00, 0xaaff00, 0x00ffaa, 0x00aaff];
Search WWH ::




Custom Search