Example #1
0
        /// <summary>
        /// LoadContent will be called once per game and is the place to load
        /// all of your content.
        /// </summary>
        protected override void LoadContent()
        {
            manu  = Content.Load <Texture2D>("TDK");
            UII01 = Content.Load <Texture2D>("UI01");
            // Create a new SpriteBatch, which can be used to draw textures.
            font        = Content.Load <SpriteFont>("font");
            spriteBatch = new SpriteBatch(GraphicsDevice);
            player.Load(Content, "player", 12, 3, 20);
            //bg = Content.Load<Texture2D>("bg4");
            ball = Content.Load <Texture2D>("ball");

            this.song = Content.Load <Song>("sound");
            //lazer0.Load(Content);
            item.Load(Content);
            hp.Load(Content);

            playerX.Load(Content, "player");
            coins.Load(Content, "coin");
            MediaPlayer.Play(song);
            MediaPlayer.Volume             = 0.1f;
            MediaPlayer.MediaStateChanged += MediaPlayer_MediaStateChanged;
            // TODO: use this.Content to load your game content here
        }