예제 #1
0
        private void tmrKeyRepeatLeft_Tick(object sender, EventArgs e)
        {
            if (!tmrKeyRepeatLeft.Enabled)
            {
                return;
            }

            BeginUpdate();
            EffacerPieceCourante();
            pieceCourante.Déplacer(0, -1);

            if (EstEnCollision())
            {
                pieceCourante.Déplacer(0, 1);
            }

            DessinerPieceCourante();
            EndUpdate();
        }