Пример #1
0
        public Game(Loop loop)
        {
            this.loop = loop;

            //variablene intializeren
            keyboard = new Keyboard();

            // Level 1 initializeren
            XDocument level1 = XDocument.Parse(Properties.Resources.Level1);
            map = new Level(level1, this);
        }
Пример #2
0
 private void SelectLevel_Click(object sender, EventArgs e)
 {
     //Zolang de panel niet werkt:
     //GameLoop.Window i = new GameLoop.Window();
     //i.ShowDialog();
     // this.Visible = true;
     mainmenu.Hide();
     mainmenu.Visible = false;
     settings.Hide();
     settings.Visible = false;
     this.Visible = true;
     Sound.playEffect(Sound.hitmarker);
     loop = new Loop(this, 60, true, Menutest.Settings.refreshRate);
 }