public ControlPoint() { Level = new Level.Level(LevelWidth, LevelHeight); Algorithms = new Generation.AlgorithmComboBoxValues(); GameObjectFactory = new Generation.GameObjectFactory(); MethodFactory = new Generation.MethodFactory(); Generator = new Generation.Generator(); }
//Constructor public Loading(ContentManager Content, String s_Next) : base() { gGen = new Generation.Generator(); bCanPlay = gGen.CreatePath(Option.RoomsMin,Option.RoomsMax); fProgress = 0.0f; iRainPos = 0; sBackground = new AnimatedSprite(Content, "Menus/Main"); sBackgroundWindows = new AnimatedSprite(Content, "Menus/MainW"); sRain = new AnimatedSprite(Content, "Menus/Rain"); sRain.Colour = new Color(Color.LightSalmon, 1.0f); //sBackground.Alpha = 0.2f; sBackgroundOverlay = new AnimatedSprite(Content, "Menus/MainOverlay"); sBackgroundOverlay.Colour = new Color(Color.Red, 1.0f); sBackgroundOverlay.Alpha = 0.0f; }