Ejemplo n.º 1
0
 public override void LoadContent(ContentManager Content)
 {
     base.LoadContent(Content);
     logan          = Content.Load <Texture2D>("Logan");
     font           = Content.Load <SpriteFont>("DialogueFont");
     bg             = new ScrollingStarBackground(Content);
     title          = Content.Load <Texture2D>("Title");
     titleScreen    = Content.Load <Texture2D>("TitleScreen");
     backgroundSong = Content.Load <Song>("BeautifulDead");
     MediaPlayer.Play(backgroundSong);
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Loads the content of the <c>GameScreen</c>.
        /// </summary>
        /// <param name="Content"></param>
        public override void LoadContent(ContentManager Content)
        {
            base.LoadContent(Content);
            this.Content = new ContentManager(Content.ServiceProvider, "Content");
            ssb          = new ScrollingStarBackground(this.Content);
            blank        = this.Content.Load <Texture2D>("Blank");
            ScreenManager s = ScreenManager.GetInstance();

            playerTexture = this.Content.Load <Texture2D>("Player");
            font          = this.Content.Load <SpriteFont>("TransitionFont");

            // comment out if you are initializing players through the player ready screen
            //InitializePlayers();
        }