[SWF(width = "600", height = "600", frameRate = "40")]
public class Main extends Sprite
public static const WIDTH:Number = 600;
public static const HEIGHT:Number = 600;
private var debug:Boolean = false;
private var sun:SunLight;
private var night:NightSky;
private var entities:Vector.<Entity> = new Vector.<Entity>();
private var sunBlock:BitmapData = new BitmapData(WIDTH, HEIGHT);
private var renderedSky:BitmapData = new BitmapData(WIDTH, (HEIGHT+1)/2);
private var scene:Sprite = new Sprite;
private var clouds:Clouds
public static const CLOUD_NUM:int = 50;
public static const ERROR_SEEDS:Array = [346, 514, 1155, 1519, 1690, 1977, 2327, 2337, 2399, 2860, 2999, 3099, 4777, 4952, 5673, 6265, 7185, 7259, 7371, 7383, 7717, 7847, 8032, 8350, 8676, 8963, 8997, 9080, 9403, 9615, 9685];
public var loading:LoadingScene;
public function Main():void
else addEventListener(Event.ADDED_TO_STAGE, init);
private function init(e:Event = null):void {
removeEventListener(Event.ADDED_TO_STAGE, init);