75 lines
1.9 KiB
ActionScript
75 lines
1.9 KiB
ActionScript
package com.arc.dh.util
|
|
{
|
|
public class Config
|
|
{
|
|
|
|
public static const DEBUG:Boolean = false;
|
|
|
|
public static const KONGREGATE:String = "Kongregate";
|
|
|
|
public static const ARMORGAMES:String = "Armor Games";
|
|
|
|
public static const FLASHGAMELICENSE:String = "FGL";
|
|
|
|
public static const PERSONAL:String = "Personal";
|
|
|
|
public static const DISTRIBUTION:String = "Distribution";
|
|
|
|
public static const MAXGAMES:String = "MaxGames";
|
|
|
|
public static const PEGAS:String = "Pegas Games";
|
|
|
|
public static const BLOCK_SIZE:int = 12;
|
|
|
|
public static const WIDTH:int = 360;
|
|
|
|
public static const HEIGHT:int = 240;
|
|
|
|
public static const BLOCK_WIDTH:int = WIDTH / BLOCK_SIZE;
|
|
|
|
public static const BLOCK_HEIGHT:int = HEIGHT / BLOCK_SIZE;
|
|
|
|
public static const RELEASE:String = PEGAS;
|
|
|
|
public static const VERSION:String = "1.21";
|
|
|
|
public static const SPAWN_PADDING:int = 6;
|
|
|
|
public static const DESPAWN_PADDING:int = 12;
|
|
|
|
public function Config()
|
|
{
|
|
super();
|
|
}
|
|
|
|
public static function getSiteLock() : String
|
|
{
|
|
switch(RELEASE)
|
|
{
|
|
case KONGREGATE:
|
|
return "kongregate.com";
|
|
case ARMORGAMES:
|
|
return "armorgames.com";
|
|
case FLASHGAMELICENSE:
|
|
return "flashgamelicense.com";
|
|
case PERSONAL:
|
|
return "iarke.us";
|
|
case DISTRIBUTION:
|
|
return "";
|
|
default:
|
|
return null;
|
|
}
|
|
}
|
|
|
|
public static function externalAPIs() : Boolean
|
|
{
|
|
if(RELEASE == ARMORGAMES)
|
|
{
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
}
|
|
}
|
|
|