public ASummonersTaleGame() { graphics = new GraphicsDeviceManager(this); Content.RootDirectory = "Content"; #region Set up settings Settings = new Settings(); if (!(Task.Run(async() => await Settings.ReadSettings()).Result)) { Exit(); return; } if (Settings.AntiAliasingOn) { EnableAntiAliasing(); } #endregion screenRectangle = new Rectangle(0, 0, 1280, 720); graphics.PreferredBackBufferHeight = screenRectangle.Height; graphics.PreferredBackBufferWidth = screenRectangle.Width; stateManager = new GameStateManager(this); Components.Add(stateManager); this.IsMouseVisible = true; #region Create game states splashScreenState = new SplashScreenState(this); startMenuState = new MenuState(this); playState = new PlayState(this); worldMapState = new WorldMapState(this); #endregion stateManager.ChangeState((SplashScreenState)splashScreenState, PlayerIndex.One); }
public void Dispose() { current_state = new hide_the_splash_screen(timer, view, this); }
public void run() { view.display(); current_state = new DisplayTheSplashScreen(timer, view, this); }