예제 #1
0
        public void Move()
        {
            player.checkCoords();
            background.Move();
            player.MovePlane();
            ProduceBullet();
            ProduceEnemy();
            suGun.Move();
            box.Move();
            if (player.ChangeBlood(0))//玩家血量为0时,敌机不发射子弹
            {
                ProduceEnemyBullet();
            }
            Random rand = new Random(Guid.NewGuid().GetHashCode());

            if (0 == rand.Next(500))
            {
                suGun.Exist = true;
            }
            if (0 == rand.Next(500))
            {
                box.Exist = true;
            }
        }