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 restartToolStripMenuItem_Click(object sender, EventArgs e) { if (czy_gra_aktywna) { snake = new Waz(pole_gry.Width, pole_gry.Height); owoc = new owoc(snake.segment); } }