/// <summary> /// Creates the main screen and assigns the provided instances to local refs /// </summary> /// <param name="graphicsDevice"></param> /// <param name="colorMap"></param> /// <param name="fonts"></param> /// <param name="method"></param> public MainScreen( GraphicsDevice graphicsDevice, ColorMap colorMap, List<SpriteFont> fonts, ScreenChanged method ) { // subscribe to the delegate invocation list _screenChanged += method; // assign refs to the local instances _graphicsDevice = graphicsDevice; _fonts = fonts; _colorMap = colorMap; // create a new track for the main screen with the top difficulty _track = new ColorPlateTrack( graphicsDevice, colorMap, _fonts[ 0 ], Difficulty.Asian ); }
/// <summary> /// Instantiates the game screen and sets up the base values /// </summary> /// <param name="graphicsDevice"></param> /// <param name="colorMap"></param> /// <param name="fonts"></param> /// <param name="screenChanged"></param> public GameScreen( GraphicsDevice graphicsDevice, ColorMap colorMap, List<SpriteFont> fonts, ScreenChanged screenChanged ) { // subscribe to the screen change delegate _screenChanged += screenChanged; // assign the local refs _graphicsDevice = graphicsDevice; _colorMap = colorMap; _fonts = fonts; // create the track Track = new ColorPlateTrack( _graphicsDevice, colorMap, _fonts[ 0 ], Difficulty.Pro /*alter to populate from settings*/ ); }