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); } }
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)); */ }
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)); */ }
public GameScene(StageData data, PlayerState playerState) : this(data) { player.State = playerState; }
public GameScene12(StageData data, PlayerState playerState) : base(data, playerState) { skyColorCount = 0; }
public GameScene16(StageData data, PlayerState playerState) : base(data, playerState) { }
public GameScene20(StageData data, PlayerState playerState) : base(data, playerState) { Init(); }
public GameScene09(StageData data) : base(data) { initEnemyCount = Enemies.Count; skyColorCount = 255; }
public GameScene25(StageData data, PlayerState playerState) : base(data, playerState) { Init(); }
public GameScene12(StageData data) : base(data) { skyColorCount = 0; }
public GameScene24(StageData data, PlayerState playerState) : base(data, playerState) { mafiaCount = 10; spawnMafia = false; }
public GameScene24(StageData data) : base(data) { mafiaCount = 3; spawnMafia = false; }
public GameScene06(StageData data, PlayerState playerState) : base(data, playerState) { }
public GameScene06(StageData data) : base(data) { }
public GameScene07(StageData data) : base(data) { initEnemyCount = Enemies.Count; skyColorCount = 255; }
public GameScene25(StageData data) : base(data) { Init(); }
public GameScene07(StageData data, PlayerState playerState) : base(data, playerState) { initEnemyCount = Enemies.Count; skyColorCount = 255; }
public GameScene09(StageData data, PlayerState playerState) : base(data, playerState) { initEnemyCount = Enemies.Count; skyColorCount = 255; }
public GameScene20(StageData data) : base(data) { Init(); }
public GameScene16(StageData data) : base(data) { }