Esempio n. 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()
        {
            // Create a new SpriteBatch, which can be used to draw textures.
            this.spriteBatch = new SpriteBatch(GraphicsDevice);
            this.spriteData  = new SpriteData();

            this.background = Content.Load <Texture2D>(@"Content\Background");

            SpriteInitializer.InitializeSprites(this.spriteData, Content);

            this.emoticon   = new Emoticon("OnfireEmoticon");
            this.sprite     = spriteData.DuplicateSprite(this.emoticon.Name);
            this.uiEmoticon = new UIEmoticon(this.sprite, this.emoticon);
            this.uiEmoticon.Sprite.AnimationIndex = 3;

            this.hero   = new Hero("LightHero");
            this.sprite = spriteData.DuplicateSprite(this.hero.Name);
            this.uiHero = new UIHero(this.sprite, this.hero);

            StartGame();
        }