Beispiel #1
0
        private void Timer_Tick(object sender, EventArgs e)
        {
            _infoPanel.OnTick(sender, e);
            if (Game.IsOver)
            {
                Timer.Stop();
                return;
            }
            //_infoPanel.OnTick(sender, e);
            //if (Game.IsOver)
            //{
            //    Timer.Stop();
            //    return;
            //}
            Paddle.Collide();
            Ball.Move(null, Game.FPS);

            //DrawGame();
            Invalidate();
        }