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