Example #1
0
 public FishChild(int x, int y, Graphics g)
 {
     creator = new FishChildCreator();
     creator.Create(g, x, y);
     X      = x;
     Y      = y;
     this.g = g;
 }
Example #2
0
 public FishChild(Graphics g, int x, int y)
 {
     creator = new FishChildCreator();
     creator.Create(g, x, y);
     X       = x - 25;
     Y       = y - 30;
     Width   = 50;
     Height  = 32;
     this.g  = g;
     TrgX    = rnd.Next(80, 1450);
     TrgY    = rnd.Next(40, 650);
     lifeRec = new Rectangle(x, y + Height, Width, 10);
 }