Beispiel #1
0
 private void Button1_Click(object sender, EventArgs e)
 {
     mapData = new Map();
     logic   = new Logic();
     score   = 0;
     mapData.randomMap(int.Parse(cbGold.SelectedItem.ToString()), int.Parse(cbW.SelectedItem.ToString()), int.Parse(cbP.SelectedItem.ToString()));
     drawMap();
 }
Beispiel #2
0
 public Form1()
 {
     InitializeComponent();
     mapData = new Map();
     logic   = new Logic();
     score   = 0;
     cbSpeed.SelectedIndex = 0;
     cbGold.SelectedIndex  = 0;
     cbW.SelectedIndex     = 0;
     cbP.SelectedIndex     = 0;
     mapData.randomMap(int.Parse(cbGold.SelectedItem.ToString()), int.Parse(cbW.SelectedItem.ToString()), int.Parse(cbP.SelectedItem.ToString()));
     drawMap();
 }