Beispiel #1
0
        protected override void LoadContent()
        {
            base.LoadContent();

            this.spriteBatch = (SpriteBatch)this.Game.Services.GetService(typeof(SpriteBatch));
            this.spriteSheet = new SpriteSheet(this.Game.Content.Load<Texture2D>(@"Sprites\Bomb"), new Size(44, 44));
        }
Beispiel #2
0
        protected override void LoadContent()
        {
            base.LoadContent();

            this.spriteBatch = (SpriteBatch)this.Game.Services.GetService(typeof(SpriteBatch));
            this.spriteSheet = new SpriteSheet(this.parent.Content.Load<Texture2D>(this.sprite), new Size(this.map.SpriteSize.Width, this.map.SpriteSize.Height));
        }