コード例 #1
0
        public override void LoadContent(ContentManager content)
        {
            if (this.contentManager == null)
            {
                this.contentManager = content;
            }

            #region Background
            Texture2D _texture0 = content.Load <Texture2D>("./Backgrounds/posible-bg3");
            Texture2D _texture1 = content.Load <Texture2D>("./Backgrounds/treeses_pasto4");
            this.Theme = content.Load <Song>("./Sounds/Jungle");
            MediaPlayer.Play(this.Theme);
            MediaPlayer.IsRepeating = true;

            this.background = new Background(_texture0, _texture1);

            #endregion

            caveman   = new Caveman(new Vector2(0, 350));
            this.font = content.Load <SpriteFont>("./Fonts/Stats");
            caveman.LoadContent(content);
            AddPterodactyl();
        }