public override void Initialize()
        {
            BaseTexture2D background = new BaseTexture2D(Game, new Rectangle(0, 0, Game.GraphicsDevice.Viewport.Width, Game.GraphicsDevice.Viewport.Height), "Images/tutorial");

            this.SceneComponents.Add(background);
            base.Initialize();
        }
Esempio n. 2
0
        public override void Initialize()
        {
            BaseTexture2D background = new BaseTexture2D(Game, Vector2.Zero, "Images/mainmenu");

            this.SceneComponents.Add(background);
            this.SceneComponents.Add(new MainMenuComponent(Game, menuOptions));
            this.Show();

            BaseSong song = new BaseSong(Game, "Music/bgSong");

            this.SceneComponents.Add(song);
            Game.Components.Add(song);

            base.Initialize();
        }