Exemplo n.º 1
0
        private void frmGame_Load(object sender, EventArgs e)
        {
            rtn_Barra = new Rectangle(pcb_Paddle.Location.X, pcb_Paddle.Location.Y, pcb_Paddle.Width, pcb_Paddle.Height);
            rtn_Palla = new Rectangle(pcb_Ball.Location.X, pcb_Ball.Location.Y, pcb_Ball.Width, pcb_Ball.Height);

            Ogg.SpawnaOggetti(ref Brick, ref pnl_Home, ref Rect);
            P1 = new Palla(ref rtn_Palla, ref pcb_Ball);
            //tmr_Resume.Stop();
            pcb_Start.Focus();
        }
Exemplo n.º 2
0
        private void frmGame_Load(object sender, EventArgs e)
        {
            rtn_Barra = new Rectangle(pcb_Paddle.Location.X, pcb_Paddle.Location.Y, pcb_Paddle.Width, pcb_Paddle.Height);
            rtn_Palla = new Rectangle(pcb_Ball.Location.X, pcb_Ball.Location.Y, pcb_Ball.Width, pcb_Ball.Height);

            Ogg.SpawnaOggetti(ref Brick, ref pnl_Home, ref Rect);
            P1 = new Palla(ref rtn_Palla, ref pcb_Ball);
            //tmr_Resume.Stop();
            pcb_Start.Focus();
        }