コード例 #1
0
ファイル: Character.cs プロジェクト: vitormoura/game-sgs_lab
        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();
        }
コード例 #2
0
        public CharacterAnimations(CharacterSpriteSheet sheet)
        {
            D.Assert(sheet != null);

            this.spriteSheet = sheet;
        }