public void Restart() { status = new Status(); world = new World(this); ui = new UI(this); }
protected override void Initialize() { base.Initialize(); this.graphics.PreferredBackBufferWidth = GraphicsDevice.DisplayMode.Width; this.graphics.PreferredBackBufferHeight = GraphicsDevice.DisplayMode.Height; this.graphics.IsFullScreen = false; this.graphics.ApplyChanges(); this.IsMouseVisible = true; this.audio = new Audio(this); this.Components.Add(audio); this.audio.Initialize(); this.music = new Music(audio.soundBank, audio.engine); this.status = new Status(); this.world = new World(this); this.ui = new UI(this); this.start = new Rectangle(Window.ClientBounds.Width - 300, Window.ClientBounds.Height - 102, 280, 82); this.tutorial = new Rectangle(10, Window.ClientBounds.Height - 102, 280, 82); }