public hermitCrab(Texture2D tex, Vector2 centre, Vector2 pos, Rectangle sourceRect, Vector2 vel, gameObject target) : base(tex, centre, pos, sourceRect, vel) { weapon = new crabGun(target); Velocity = new Vector2(1, 0.1f); health = 3; }
public shell(Texture2D tex, Vector2 centre, Vector2 pos, Rectangle sourceRect, gameObject target, int rows = 1, int columns = 8, int frames = 7) : base(tex, centre, pos, sourceRect) { Velocity = new Vector2(100, 100); deathTime = 5.0f; damage = 3; this.target = target; }
/* Check CollidesWith for box */ public virtual bool CollidesWith(gameObject gmObject) { return this.BoundingBox.Intersects(gmObject.BoundingBox); }
public crabGun(gameObject target) { fireSpeed = 2.0f; this.target = target; }