示例#1
0
        public void Run()
        {
            //AddStars();

            AddObject((SpaceObject)1);

            Controller.ShowBorders(this);

            do
            {
                Controller.Hide(this);

                Controller.Show(this);

                Controller.ShowDisplay(this);

                StepObjects();

                ProduceEnemies();

                ShotEnemies();

                try
                {
                    CheckObjects();
                }
                catch (ClashException ex)
                {
                    Controller.ShowExplosion(ex);
                }
            } while (IsGameOver());
        }