public Boulder(Vector2 coords) : base() { TTL = 50000; var movable = new ProjectileMoveComponent(this, coords, new Vector2(6, 6)) { Solid = false, Hittable = false, InverseMass = InverseMass }; Components.Add(movable); var c = new AnimatedRenderComponent(this) { Texture = GameContent.Instance.boulder }; c.AddAnimation(new Animations.DeathAnimation(c)); Components.Add(c); Components.Add(new DamageHitComponent(this, damage: 3)); }
public DeathAnimation(AnimatedRenderComponent drawable) : base(drawable) { }
public Animation(AnimatedRenderComponent drawable) { Drawable = drawable; }
public CastAnimation(AnimatedRenderComponent drawable) : base(drawable) { }