Example #1
0
 public void ucakSavarOlustur(int x, int y, MainPencere ciz)
 {
     ucak.ImageLocation = "tanknavy.png";
     ucak.SizeMode      = PictureBoxSizeMode.StretchImage;
     ucak.Size          = new Size(50, 30);
     ucak.Location      = new Point(x, y);
     ucak.BackColor     = Color.Transparent;
     ciz.Controls.Add(ucak);
 }
Example #2
0
 public void dusmanGemisiOlustur(int x, int y, MainPencere ciz)
 {
     dusman = new PictureBox();
     dusman.ImageLocation = "enemyShip.png";
     dusman.SizeMode      = PictureBoxSizeMode.StretchImage;
     dusman.Size          = new Size(50, 45);
     dusman.Location      = new Point(x, y);
     dusman.BackColor     = Color.Transparent;
     dusmanlar.Add(dusman);
     ciz.Controls.Add(dusmanlar[dusmanIndex]);
     dusmanIndex++;
 }
Example #3
0
 public void mermiOlustur(int x, int y, MainPencere ciz)
 {
     mermi = new PictureBox();
     mermi.ImageLocation = "ammo.png";
     mermi.Size          = new Size(7, 14);
     mermi.SizeMode      = PictureBoxSizeMode.StretchImage;
     mermi.Location      = new Point(x, y);
     mermi.BackColor     = Color.Transparent;
     mermiler.Add(mermi);
     ciz.Controls.Add(mermiler[mermiIndex]);
     mermiIndex++;
 }