Example #1
0
        private void button2_Click(object sender, EventArgs e)
        {
            click.Play();
            Form1.increments = 4;
            Form1.rodHSpeed  = 8;
            Form1.rodVSpeed  = 6;
            Form1.rodColor   = Color.DarkRed;

            Form f = this.FindForm();

            f.Controls.Remove(value: this);
            StartScreen screen1 = new StartScreen();

            f.Controls.Add(screen1);
            screen1.Focus();

            screen1.Location = new Point((f.Width - screen1.Width) / 2, (f.Height - screen1.Height) / 2);
        }
Example #2
0
        public Form1()
        {
            InitializeComponent();
            //Direct to a Start Screen
            //Start Screen = Screen 1
            //Game Screen  = Screen 2
            //Gift Screen = Screen 3
            //Up Speed = Screen 4
            //Appearance Change = Screen 5
            //End Screen = Screen 6

            //Final ToDos: Add sounds

            StartScreen screen1 = new StartScreen();

            this.Controls.Add(screen1);

            screen1.Location = new Point((this.Width - screen1.Width) / 2, (this.Height - screen1.Height) / 2);
        }