Esempio n. 1
0
        public override void Setup(GameMode gameMode)
        {
            base.Setup(gameMode);
            IsTopDown = false;
            var levelGrid = new ObjectGrid("levelGrid", this, 4, 3, 1920, 960);

            levelGrid.CanCollide = true;
            AddGridToLevelGrid(0, 0, levelGrid, new string[] { "19", "102", "103" });
            AddGridToLevelGrid(1, 0, levelGrid, new string[] { "111", "43" });
            AddGridToLevelGrid(2, 0, levelGrid, new string[] { "108", "109" });
            AddGridToLevelGrid(0, 1, levelGrid, new string[] { "20", "39", "51" });
            AddGridToLevelGrid(0, 2, levelGrid, new string[] { "21", "106" });
            AddGridToLevelGrid(1, 2, levelGrid, new string[] { "104", "105" });
            AddGridToLevelGrid(2, 2, levelGrid, new string[] { "95", "107" });
            AddGridToLevelGrid(3, 2, levelGrid, new string[] { "110" });
            Add(levelGrid);

            var teleporterback = new Teleporter("teleporter", this, "MainWorld", new Microsoft.Xna.Framework.Vector2(3456, 384));

            teleporterback.Position    = new Microsoft.Xna.Framework.Vector2(7296, 2688);
            teleporterback.BoundingBox = new Rectangle(0, 0, 96, 96);
            Add(teleporterback);

            var MinidungeonItem = new UpgradePickup("Damage150", this, new SpriteSheet("Textures/Items/Damage150"), "Increases damage by 150!");

            MinidungeonItem.Position = new Vector2(7200, 2688);
            MinidungeonItem.Damage   = 150;

            Add(MinidungeonItem);
        }
Esempio n. 2
0
        public override void Setup(GameMode gameMode)
        {
            base.Setup(gameMode);
            IsTopDown = false;
            var levelGrid = new Engine.ObjectGrid("levelGrid", this, 3, 3, 1920, 960);

            levelGrid.CanCollide = true;
            AddGridToLevelGrid(0, 0, levelGrid, new string[] { "96" });
            AddGridToLevelGrid(1, 0, levelGrid, new string[] { "97" });
            AddGridToLevelGrid(2, 0, levelGrid, new string[] { "98" });
            AddGridToLevelGrid(2, 1, levelGrid, new string[] { "46" });
            AddGridToLevelGrid(0, 1, levelGrid, new string[] { "26" });
            AddGridToLevelGrid(0, 2, levelGrid, new string[] { "100" });
            AddGridToLevelGrid(1, 1, levelGrid, new string[] { "99" });
            AddGridToLevelGrid(1, 2, levelGrid, new string[] { "110" });
            Add(levelGrid);

            var teleporterback = new Teleporter("teleporter", this, "MainWorld", new Microsoft.Xna.Framework.Vector2(4416, 5184));

            teleporterback.Position    = new Microsoft.Xna.Framework.Vector2(3456, 2688);
            teleporterback.BoundingBox = new Rectangle(0, 0, 96, 96);
            Add(teleporterback);

            var MinidungeonItem = new UpgradePickup("Alles100", this, new SpriteSheet("Textures/Items/Alles100"), "Increases all stats by 100!");

            MinidungeonItem.Position    = new Vector2(3360, 2688);
            MinidungeonItem.Health      = 100;
            MinidungeonItem.Damage      = 100;
            MinidungeonItem.AttackSpeed = 100;
            MinidungeonItem.Speed       = 100;

            var MinidungeonItem2 = new UpgradePickup("Health100", this, new SpriteSheet("Textures/Items/Health100"), "Increases Health by 100!");

            MinidungeonItem2.Position = new Vector2(1536, 400);
            MinidungeonItem2.Health   = 100;

            Add(MinidungeonItem);
            Add(MinidungeonItem2);
        }
Esempio n. 3
0
        public override void Setup(GameMode gameMode)
        {
            base.Setup(gameMode);

            var grid = new Overworld("overWorldGrid", this, "OverWorld", 96);

            grid.CanCollide = true;
            Add(grid);

            //Add teleporters to different worlds
            Teleporter teleporterDungeon1 = new Teleporter("teleporter", this, "Dungeon1", new Vector2(33600, 6240));

            teleporterDungeon1.Position    = new Vector2(576, 4032);
            teleporterDungeon1.BoundingBox = new Rectangle(0, 0, 96, 96);

            Teleporter teleporterMiniDungeon1 = new Teleporter("teleporter", this, "MiniDungeon1", new Vector2(5360, 300));

            teleporterMiniDungeon1.Position    = new Vector2(3456, 192);
            teleporterMiniDungeon1.BoundingBox = new Rectangle(0, 0, 96, 96);

            Teleporter teleporterMiniDungeon2 = new Teleporter("teleporter", this, "MiniDungeon2", new Vector2(2220, 1200));

            teleporterMiniDungeon2.Position    = new Vector2(4608, 5184);
            teleporterMiniDungeon2.BoundingBox = new Rectangle(0, 0, 96, 96);

            //Add Items available for pickup
            UpgradePickup Speed100 = new UpgradePickup("Speed100", this, new SpriteSheet("Textures/Items/Speed100"), "Increases speed by 100!");

            Speed100.Position = new Vector2(2400, 2688);
            Speed100.Speed    = 100;

            UpgradePickup Attackspeed100 = new UpgradePickup("Attackspeed100", this, new SpriteSheet("Textures/Items/Attackspeed100"), "Increases Attackspeed by 100!");

            Attackspeed100.Position    = new Vector2(480, 1248);
            Attackspeed100.AttackSpeed = 100;

            UpgradePickup Damage100 = new UpgradePickup("Damage100", this, new SpriteSheet("Textures/Items/Damage100"), "Increases damage by 100!");

            Damage100.Position = new Vector2(5952, 768);
            Damage100.Damage   = 100;

            UpgradePickup Health250 = new UpgradePickup("Health250", this, new SpriteSheet("Textures/Items/Health250"), "Increases Health by 250!");

            Health250.Position = new Vector2(10752, 1920);
            Health250.Health   = 250;

            UpgradePickup Speed200 = new UpgradePickup("Speed200", this, new SpriteSheet("Textures/Items/Speed200"), "Increases speed by 200!");

            Speed200.Position = new Vector2(8544, 5664);
            Speed200.Speed    = 200;

            Add(Speed100);
            Add(Attackspeed100);
            Add(Damage100);
            Add(Health250);
            Add(Speed200);

            Add(teleporterDungeon1);
            Add(teleporterMiniDungeon1);
            Add(teleporterMiniDungeon2);
        }