Example #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;
 }
Example #2
0
 private void startToolStripMenuItem_Click(object sender, EventArgs e)
 {
     czyGraJestAktywna = true;
     snake             = new Waz(poleGry.Width);
     owoc = new Owoc(snake.dlugoscBokuSegmentu);
     pauzaToolStripMenuItem.Enabled = true;
 }
Example #3
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);
     }
 }