/// <summary> /// Allows the game to perform any initialization it needs to before starting to run. /// This is where it can query for any required services and load any non-graphic /// related content. Calling base.Initialize will enumerate through any components /// and initialize them as well. /// </summary> protected override void Initialize() { // TODO: Add your initialization logic here base.Initialize(); battleMap = Map.buildDefaultMap(20, 20); //build map allCover = Cover.createTestCover(battleMap); allies = Character.createTestAllies(5, battleMap); enemies = Character.createTestEnemies(5, battleMap); //create teams of characters allCharacters.AddRange(allies); allCharacters.AddRange(enemies); playerTurn = true; gameCamera = new Camera(); //create camera mapWidth = battleMap.mapWidthInTiles(); mapHeight = battleMap.mapHeightInTiles(); }
/// <summary> /// Allows the game to perform any initialization it needs to before starting to run. /// This is where it can query for any required services and load any non-graphic /// related content. Calling base.Initialize will enumerate through any components /// and initialize them as well. /// </summary> protected override void Initialize() { // TODO: Add your initialization logic here base.Initialize(); battleMap = Map.buildDefaultMap(20, 20); //build map playState = new PlayState(battleMap); playState.viewportWidth = graphics.GraphicsDevice.Viewport.Width; playState.viewportHeight = graphics.GraphicsDevice.Viewport.Height; /*allCover = Cover.createTestCover(battleMap); allies = Character.createTestAllies(5, battleMap); enemies = Character.createTestEnemies(5, battleMap); //create teams of characters allCharacters.AddRange(allies); allCharacters.AddRange(enemies); playerTurn = true;*/ gameCamera = new Camera(); //create camera mapWidth = battleMap.mapWidthInTiles(); mapHeight = battleMap.mapHeightInTiles(); }