public void restart() { timer1.Enabled = false; stopped = true; MessageBox.Show("Snake Died, Your score: "+ score); SnakeScoreLabel.Text = "0"; score = 0; SpaceBarLabel.Text = "Press Space to Replay"; snake = new Snake(); food = new Eater(rn); }
public Form1() { InitializeComponent(); food = new Eater(rn); }