public GameScene(int numRows, int numCols) { random = new Random(); map = new Map(this, numRows, numCols); player = null; camera = Vector.Zero; players = new ThingList(); enemies = new ThingList(); enemyAddList = new ThingList(); playerBullets = new BulletList(); enemyBullets = new BulletList(); items = new ThingList(); door = null; 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; }
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)); */ }