Ejemplo n.º 1
0
 public SharkLevelTwo(Texture2D tex, Vector2 centre, Vector2 pos, Rectangle sourceRect, Vector2 vel, geraldLevelTwo food) :
     base(tex, centre, pos, sourceRect, vel)
 {
     // Pass the player as a parameter so the shark can track the movement.
     this.food = food;
     health    = 100;
     weapon    = new sharkCannon();
     Velocity  = new Vector2(300, 0);
 }
Ejemplo n.º 2
0
 public SharkLevelTwo(Texture2D tex, Vector2 centre, Vector2 pos, Rectangle sourceRect, Vector2 vel, geraldLevelTwo food) :
     base(tex, centre, pos, sourceRect, vel)
 {
     // Pass the player as a parameter so the shark can track the movement.
     this.food = food;
     health = 100;
     weapon = new sharkCannon();
     Velocity = new Vector2(300, 0);
 }