コード例 #1
0
ファイル: Goomba1.cs プロジェクト: drrick42/Pretendo-Project
        public Goomba1(ContentManager content) : base(content)
        {
            FrameCountX = 4;
            FrameCountY = 1;

            SpriteTexture = content.Load <Texture2D>("goomba");

            FrameWidth    = this.SpriteTexture.Width / this.FrameCountX;
            FrameHeight   = this.SpriteTexture.Height / this.FrameCountY;
            this.Position = Vector2.Zero;
            Origin        = new Vector2(0f, FrameHeight);
            Animation     = new GoombaWalking();
        }
コード例 #2
0
 public ActiveGoombaState(GoombaStateMachine sm, EnemyEntity enemy)
     : base(sm, enemy)
 {
     Animation = new GoombaWalking();
 }