Esempio n. 1
0
 private void startToolStripMenuItem_Click(object sender, EventArgs e)
 {
     czy_gra_aktywna = true;
     snake           = new Waz(pole_gry.Width, pole_gry.Height);
     owoc            = new owoc(snake.segment);
     pauzaToolStripMenuItem.Enabled = true;
 }
Esempio n. 2
0
 private void restartToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (czy_gra_aktywna)
     {
         snake = new Waz(pole_gry.Width, pole_gry.Height);
         owoc  = new owoc(snake.segment);
     }
 }