Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 2
0
 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;
 }
Ejemplo n.º 3
0
 /* Check CollidesWith for box */
 public virtual bool CollidesWith(gameObject gmObject)
 {
     return this.BoundingBox.Intersects(gmObject.BoundingBox);
 }
Ejemplo n.º 4
0
 public crabGun(gameObject target)
 {
     fireSpeed = 2.0f;
     this.target = target;
 }