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(); }
public ActiveGoombaState(GoombaStateMachine sm, EnemyEntity enemy) : base(sm, enemy) { Animation = new GoombaWalking(); }