コード例 #1
0
 private void GelismisPictureBoxOlustur(int x, int y)
 {
     this.PictureBox           = new GelismisPictureBox();
     this.PictureBox.BackColor = this.Oyun.GPCT_Boom.BackColor;
     this.PictureBox.Image     = this.Oyun.GPCT_Boom.Image;
     this.PictureBox.Left      = x - (this.PictureBox.Image.Width / 2);
     this.PictureBox.Top       = y - (this.PictureBox.Image.Height / 2);
 }
コード例 #2
0
ファイル: Oyun.cs プロジェクト: dhmm/FuzeSavunmaOyunu
 public Oyun(Form form, Timer timer, GelismisPictureBox boom, GelismisPictureBox hedef, GelismisPictureBox duz, GelismisPictureBox ust, GelismisPictureBox alt)
 {
     this.Form       = form;
     this.Timer      = timer;
     this.GCPT_DUZ   = duz;
     this.GPCT_UST   = ust;
     this.GPCT_ALT   = alt;
     this.GPCT_Hedef = hedef;
     this.GPCT_Boom  = boom;
     this.Fuzeler    = new Fuze[MAX_FUZE_SAYISI];
 }