Ejemplo n.º 1
0
        void onWin()
        {
            level += 1;
            lives += 1;
            score += 1000;

            if (level < 11)
            {
                for (int i = 0; i < 49; i++)
                {
                    blocks.Remove(blocks[0]);
                }
                LevelLoad(level);
                findStart();
            }
            else
            {
                //Change to the name screen
                Form  f  = this.FindForm();
                HowTo hs = new HowTo();
                f.Controls.Add(hs);
                hs.Location = new Point((f.Width - hs.Width) / 2, (f.Height - hs.Height) / 2);
                hs.Focus();
                f.Controls.Remove(this);
            }
        }
Ejemplo n.º 2
0
        private void Play_Click(object sender, EventArgs e)
        {
            //Change to the how to play screen
            Form  f  = this.FindForm();
            HowTo hs = new HowTo();

            f.Controls.Add(hs);
            hs.Location = new Point((f.Width - hs.Width) / 2, (f.Height - hs.Height) / 2);
            hs.Focus();
            f.Controls.Remove(this);
        }