/**
         * Startet das Spiel
         */
        private void GameStart(int mode)
        {
            RemoveAllObjects();
            RemovePlayer();
            switch (mode)
            {
            case 0:
                _imagePath = Winter;
                break;

            case 1:
                _imagePath = Summer;
                break;

            case 2:
                _imagePath = Mountain;
                break;

            case 3:
                _imagePath = Street;
                break;
            }
            _twoObjectsInOneColumn = false;
            SetBackgroundImage();
            AddPlayer();
            _fallWorker              = new FallWorker(false);
            _fallWorker.eventFallen += new MiniGame.FallWorker.FallWorkerEventHandler(FallHandler);
            _fallThread              = new Thread(_fallWorker.InvokeFalling);
            _fallThread.Start();
        }
Exemplo n.º 2
0
 /**
  * Startet das Spiel
  */
 private void GameStart(int mode)
 {
     RemoveAllObjects();
     RemovePlayer();
     switch (mode)
     {
         case 0:
             _imagePath = Winter;
             break;
         case 1:
             _imagePath = Summer;
             break;
         case 2:
             _imagePath = Mountain;
             break;
         case 3:
             _imagePath = Street;
             break;
     }
     _twoObjectsInOneColumn = false;
     SetBackgroundImage();
     AddPlayer();
     _fallWorker = new FallWorker(false);
     _fallWorker.eventFallen += new MiniGame.FallWorker.FallWorkerEventHandler(FallHandler);
     _fallThread = new Thread(_fallWorker.InvokeFalling);
     _fallThread.Start();
 }