Ejemplo n.º 1
0
        public override void LoadContent()
        {
            var ssheet = new CharacterSpriteSheet(this.spriteSheetName);

            ssheet.LoadContent();

            this.animations      = new CharacterAnimations(ssheet);
            this.AnimationPlayer = new SpriteAnimationPlayer();

            this.AddChild(this.AnimationPlayer);
            this.AddChild(this.animations);

            base.LoadContent();
        }
Ejemplo n.º 2
0
        public CharacterAnimations(CharacterSpriteSheet sheet)
        {
            D.Assert(sheet != null);

            this.spriteSheet = sheet;
        }