Пример #1
0
 private void startToolStripMenuItem_Click(object sender, EventArgs e)
 {
     czy_gra_aktywna = true;
     waz             = new Snake(pole_gry.Width, pole_gry.Height);
     owoc            = new Owoc(waz.segment);
     pauzaToolStripMenuItem.Enabled = true;
 }
Пример #2
0
 private void restartToolStripMenuItem_Click(object sender, EventArgs e) // resetowanie
 {
     if (czy_gra_aktywna)
     {
         waz  = new Snake(pole_gry.Width, pole_gry.Height);
         owoc = new Owoc(waz.segment);
     }
 }