示例#1
0
 public void LoadStageData()
 {
     stages = new StageData[NUM_STAGES];
     for (int i = 0; i < NUM_STAGES; i++)
     {
         string path;
         if (i < 9)
         {
             path = Settings.RESOURCE_PATH + "/" + "data/stage0" + (i + 1) + ".dat";
         }
         else
         {
             path = Settings.RESOURCE_PATH + "/" + "data/stage" + (i + 1) + ".dat";
         }
         stages[i] = new StageData(path, (i + 1) % 5 == 0);
     }
 }
示例#2
0
文件: GameScene.cs 项目: sinshu/chaos
        public GameScene(StageData data)
        {
            random = new Random();
            map = data.GetMap(this);
            // player = new Player(this, 6, 1, Player.Direction.Right);
            player = data.GetPlayer(this);
            MoveCameraFast(player.Focus);
            players = new ThingList();
            players.AddThing(player);
            // enemies = new ThingList();
            enemies = data.GetEnemies(this);
            enemyAddList = new ThingList();
            playerBullets = new BulletList();
            enemyBullets = new BulletList();
            items = new ThingList();
            door = data.GetExitDoor(this);
            particles = new ParticleList();
            particleAddList = new ParticleList();
            quakeRadius = 0;
            quakeVector = Vector.Zero;
            flash = 0;
            numTicks = 0;
            cleared = false;
            clearTimer = 0;
            gameoverTimer = 0;
            gameover = false;
            backgroundParticles = new ParticleList();

            audio = null;

            /*
            enemies.AddThing(new TestEnemy(this, 7, 24, TestEnemy.Direction.Left));
            enemies.AddThing(new TestEnemy(this, 12, 11, TestEnemy.Direction.Left));
            enemies.AddThing(new TestEnemy(this, 12, 24, TestEnemy.Direction.Left));
            enemies.AddThing(new TestEnemy(this, 16, 8, TestEnemy.Direction.Left));
            enemies.AddThing(new TestEnemy(this, 22, 17, TestEnemy.Direction.Left));
            */
        }
示例#3
0
        public GameScene(StageData data)
        {
            random = new Random();
            map    = data.GetMap(this);
            // player = new Player(this, 6, 1, Player.Direction.Right);
            player = data.GetPlayer(this);
            MoveCameraFast(player.Focus);
            players = new ThingList();
            players.AddThing(player);
            // enemies = new ThingList();
            enemies             = data.GetEnemies(this);
            enemyAddList        = new ThingList();
            playerBullets       = new BulletList();
            enemyBullets        = new BulletList();
            items               = new ThingList();
            door                = data.GetExitDoor(this);
            particles           = new ParticleList();
            particleAddList     = new ParticleList();
            quakeRadius         = 0;
            quakeVector         = Vector.Zero;
            flash               = 0;
            numTicks            = 0;
            cleared             = false;
            clearTimer          = 0;
            gameoverTimer       = 0;
            gameover            = false;
            backgroundParticles = new ParticleList();

            audio = null;

            /*
             * enemies.AddThing(new TestEnemy(this, 7, 24, TestEnemy.Direction.Left));
             * enemies.AddThing(new TestEnemy(this, 12, 11, TestEnemy.Direction.Left));
             * enemies.AddThing(new TestEnemy(this, 12, 24, TestEnemy.Direction.Left));
             * enemies.AddThing(new TestEnemy(this, 16, 8, TestEnemy.Direction.Left));
             * enemies.AddThing(new TestEnemy(this, 22, 17, TestEnemy.Direction.Left));
             */
        }
示例#4
0
文件: GameScene.cs 项目: sinshu/chaos
 public GameScene(StageData data, PlayerState playerState)
     : this(data)
 {
     player.State = playerState;
 }
示例#5
0
 public GameScene12(StageData data, PlayerState playerState)
     : base(data, playerState)
 {
     skyColorCount = 0;
 }
示例#6
0
 public GameScene16(StageData data, PlayerState playerState)
     : base(data, playerState)
 {
 }
示例#7
0
 public GameScene20(StageData data, PlayerState playerState)
     : base(data, playerState)
 {
     Init();
 }
示例#8
0
 public GameScene09(StageData data)
     : base(data)
 {
     initEnemyCount = Enemies.Count;
     skyColorCount  = 255;
 }
示例#9
0
 public GameScene25(StageData data, PlayerState playerState)
     : base(data, playerState)
 {
     Init();
 }
示例#10
0
 public GameScene12(StageData data)
     : base(data)
 {
     skyColorCount = 0;
 }
示例#11
0
 public GameScene12(StageData data, PlayerState playerState)
     : base(data, playerState)
 {
     skyColorCount = 0;
 }
示例#12
0
 public GameScene24(StageData data, PlayerState playerState)
     : base(data, playerState)
 {
     mafiaCount = 10;
     spawnMafia = false;
 }
示例#13
0
 public GameScene24(StageData data)
     : base(data)
 {
     mafiaCount = 3;
     spawnMafia = false;
 }
示例#14
0
 public void LoadStageData()
 {
     stages = new StageData[NUM_STAGES];
     for (int i = 0; i < NUM_STAGES; i++)
     {
         string path;
         if (i < 9)
         {
             path = Settings.RESOURCE_PATH + "/" + "data/stage0" + (i + 1) + ".dat";
         }
         else
         {
             path = Settings.RESOURCE_PATH + "/" + "data/stage" + (i + 1) + ".dat";
         }
         stages[i] = new StageData(path, (i + 1) % 5 == 0);
     }
 }
示例#15
0
 public GameScene(StageData data, PlayerState playerState)
     : this(data)
 {
     player.State = playerState;
 }
示例#16
0
 public GameScene06(StageData data, PlayerState playerState)
     : base(data, playerState)
 {
 }
示例#17
0
 public GameScene06(StageData data)
     : base(data)
 {
 }
示例#18
0
 public GameScene07(StageData data)
     : base(data)
 {
     initEnemyCount = Enemies.Count;
     skyColorCount = 255;
 }
示例#19
0
 public GameScene25(StageData data)
     : base(data)
 {
     Init();
 }
示例#20
0
 public GameScene07(StageData data, PlayerState playerState)
     : base(data, playerState)
 {
     initEnemyCount = Enemies.Count;
     skyColorCount = 255;
 }
示例#21
0
 public GameScene09(StageData data, PlayerState playerState)
     : base(data, playerState)
 {
     initEnemyCount = Enemies.Count;
     skyColorCount  = 255;
 }
示例#22
0
 public GameScene24(StageData data)
     : base(data)
 {
     mafiaCount = 3;
     spawnMafia = false;
 }
示例#23
0
 public GameScene20(StageData data)
     : base(data)
 {
     Init();
 }
示例#24
0
 public GameScene24(StageData data, PlayerState playerState)
     : base(data, playerState)
 {
     mafiaCount = 10;
     spawnMafia = false;
 }
示例#25
0
 public GameScene16(StageData data)
     : base(data)
 {
 }
示例#26
0
 public GameScene12(StageData data)
     : base(data)
 {
     skyColorCount = 0;
 }