public GameplayManager(GameWindow window) {
            world = new World(Vector2.Zero);
            ConvertUnits.SetDisplayUnitToSimUnitRatio(20.0f); //Not sure what a good number is here?
            vfx = new VisualEffectsManager();

            this.window = window;
            grid = new Grid(world);
            armyController = new PlayerController(this, 0);

            SpawnUnit(new Vector2(150, 150), 0, UnitTypes.Ranged);
            SpawnUnit(new Vector2(250, 150), 1, UnitTypes.Ranged);
            SpawnUnit(new Vector2(252, 150), 1, UnitTypes.Melee);
            SpawnUnit(new Vector2(290, 150), 0, UnitTypes.Melee);
            SpawnUnit(new Vector2(150, 170), 0, UnitTypes.Melee);
            SpawnUnit(new Vector2(250, 170), 1, UnitTypes.Melee);
            SpawnUnit(new Vector2(252, 170), 1, UnitTypes.Ranged);
            SpawnUnit(new Vector2(290, 170), 0, UnitTypes.Ranged);
            SpawnUnit(new Vector2(150, 190), 0, UnitTypes.Ranged);
            SpawnUnit(new Vector2(250, 190), 1, UnitTypes.Ranged);
            SpawnUnit(new Vector2(252, 190), 1, UnitTypes.Ranged);
            SpawnUnit(new Vector2(290, 190), 0, UnitTypes.Ranged);
            SpawnBase(10,3, 0);
            SpawnBarracks(14, 6, 0);

            SpawnBarracks(18, 8, 1);
            
        }
Ejemplo n.º 2
0
        public GameplayManager(GameWindow window)
        {
            world = new World(Vector2.Zero);
            ConvertUnits.SetDisplayUnitToSimUnitRatio(20.0f); //Not sure what a good number is here?
            vfx = new VisualEffectsManager();

            this.window = window;
            grid        = new Grid(world, this);
            grid.LoadLevel();
            armyControllers.Add(new PlayerController(this, 0));

            SpawnUnit(new Vector2(150, 150), 0, UnitTypes.Ranged);
            SpawnUnit(new Vector2(250, 150), 0, UnitTypes.Ranged);
            SpawnUnit(new Vector2(252, 150), 0, UnitTypes.Melee);
            SpawnUnit(new Vector2(290, 150), 0, UnitTypes.Melee);
            SpawnUnit(new Vector2(150, 170), 0, UnitTypes.Melee);
            SpawnUnit(new Vector2(250, 170), 0, UnitTypes.Melee);
            SpawnUnit(new Vector2(252, 170), 0, UnitTypes.Ranged);
            SpawnUnit(new Vector2(290, 170), 0, UnitTypes.Ranged);
            SpawnUnit(new Vector2(150, 190), 0, UnitTypes.Ranged);
            SpawnUnit(new Vector2(250, 190), 0, UnitTypes.Ranged);
            SpawnUnit(new Vector2(252, 190), 0, UnitTypes.Ranged);
            //SpawnUnit(new Vector2(290, 190), 0, UnitTypes.Ranged);
            //SpawnUnit(new Vector2(151, 650), 1, UnitTypes.Ranged);
            //SpawnUnit(new Vector2(251, 650), 1, UnitTypes.Ranged);
            //SpawnUnit(new Vector2(252, 650), 1, UnitTypes.Melee);
            //SpawnUnit(new Vector2(291, 650), 1, UnitTypes.Melee);
            //SpawnUnit(new Vector2(151, 670), 1, UnitTypes.Melee);
            //SpawnUnit(new Vector2(251, 670), 1, UnitTypes.Melee);
            //SpawnUnit(new Vector2(252, 670), 1, UnitTypes.Ranged);
            //SpawnUnit(new Vector2(291, 670), 1, UnitTypes.Ranged);
            //SpawnUnit(new Vector2(151, 690), 1, UnitTypes.Ranged);
            //SpawnUnit(new Vector2(250, 690), 1, UnitTypes.Ranged);
            //SpawnUnit(new Vector2(251, 690), 1, UnitTypes.Ranged);
            //SpawnUnit(new Vector2(291, 690), 1, UnitTypes.Ranged);
            //SpawnBase(10,3, 0);
            //SpawnBarracks(14, 6, 0);

            //SpawnBase(1, 1, 1);
        }