public Level() : base() { difficulty = new Difficulty(); //Don't ask please. //initialise variables _scrollSpeed = Difficulty.GetScrollSpeed(); _tileSize = Difficulty.GetTileSize(); //Timer initialization _lastUpdatedVictimTime = 0; _lastUpdatedEnemyTime = 0; //Depth _floorLayer = new LevelLayer(); _victimLayer = new LevelLayer(); _poopLayer = new LevelLayer(); _flightLayer = new LevelLayer(); _hudLayer = new LevelLayer(); AddChild(_floorLayer); AddChild(_victimLayer); AddChild(_poopLayer); AddChild(_flightLayer); AddChild(_hudLayer); CreatePlayer(); CreateRoad(); //CreateEnemy(); CreateHUD(); Constipation newdebuff = new Constipation(this); _poopLayer.AddChild(newdebuff); newdebuff.SetXY(Utils.Random(0, game.width), Utils.Random(0, game.height) - game.height); BeakOfSteel newbuff = new BeakOfSteel(this); _poopLayer.AddChild(newbuff); newbuff.SetXY(Utils.Random(0, game.width), Utils.Random(0, game.height) - game.height); }