Game Development Reference
In-Depth Information
this yet, it is time to do so. You will need to create a Main.as class and save it in the project folder
for your chosen development environment:
This is the folder structure for the Flash IDE:
[source]
[projects]
[superclick]
[flashIDE]
[com]
[efg]
[games]
[superclick]
Main.as
And this is the file structure for the Flex SDK (using Flash Develop):
[source]
[projects]
[superclick]
[flexSDK]
[bin]
[obj]
[lib]
[src]
[com]
[efg]
[games]
[superclick]
Main.as
Here is entire code listing for this class.
package com.efg.games.superclick
{
import flash.text.TextFormat;
import flash.text.TextFormatAlign;
import flash.geom.Point;
import com.efg.framework.FrameWorkStates;
import com.efg.framework.GameFrameWork;
import com.efg.framework.BasicScreen;
import com.efg.framework.ScoreBoard;
import com.efg.framework.SideBySideScoreElement;
public class Main extends GameFrameWork {
//custom sccore board elements
public static const SCORE_BOARD_SCORE:String = "score";
public static const SCORE_BOARD_CLICKED:String = "clicked";
public static const SCORE_BOARD_PERCENT_NEEDED:String
= "percent needed";
public static const SCORE_BOARD_PERCENT_ACHIEVED:String
= "percent achieved";
Search WWH ::




Custom Search