示例#1
0
文件: Level2.cs 项目: Azivast/JUMPER
        // Position door and spawn keys
        public static void SpawnDoorAndKeys(KeyDoor keyDoor)
        {
            // Position door
            keyDoor.DoorPosition = new Vector2(75, 316);

            // Spawn keys
            keyDoor.SpawnKey(new Vector2(780, 177));
        }
示例#2
0
文件: Level1.cs 项目: Azivast/JUMPER
        // Position door and spawn keys
        public static void SpawnDoorAndKeys(KeyDoor keyDoor)
        {
            // Position door
            keyDoor.DoorPosition = new Vector2(775, 204);

            // Spawn keys
            keyDoor.SpawnKey(new Vector2(450, 215));
        }
示例#3
0
        // Position door and spawn keys
        public static void SpawnDoorAndKeys(KeyDoor keyDoor)
        {
            // Position door
            keyDoor.DoorPosition = new Vector2(20, 377);

            // Spawn keys
            keyDoor.SpawnKey(new Vector2(240, 95));
            keyDoor.SpawnKey(new Vector2(739, 100));
        }
示例#4
0
文件: Level4.cs 项目: Azivast/JUMPER
        // Position door and spawn keys
        public static void SpawnDoorAndKeys(KeyDoor keyDoor)
        {
            // Position door
            keyDoor.DoorPosition = new Vector2(365, 403);

            // Spawn keys
            keyDoor.SpawnKey(new Vector2(699, 80));
            keyDoor.SpawnKey(new Vector2(699, 384));
            keyDoor.SpawnKey(new Vector2(410, 148));
        }
示例#5
0
文件: Level6.cs 项目: Azivast/JUMPER
        // Position door and spawn keys
        public static void SpawnDoorAndKeys(KeyDoor keyDoor)
        {
            // Position door
            keyDoor.DoorPosition = new Vector2(365, 322);

            // Spawn keys
            keyDoor.SpawnKey(new Vector2(110, 44));
            keyDoor.SpawnKey(new Vector2(780, 103));
            keyDoor.SpawnKey(new Vector2(585, 253));
        }
示例#6
0
        // Position door and spawn keys
        public static void SpawnDoorAndKeys(KeyDoor keyDoor)
        {
            // Position door
            keyDoor.DoorPosition = new Vector2(774, 305);

            // Spawn keys
            keyDoor.SpawnKey(new Vector2(779, 128));
            keyDoor.SpawnKey(new Vector2(137, 202));
            keyDoor.SpawnKey(new Vector2(410, 338));
        }
示例#7
0
        // Position door and spawn keys
        public static void SpawnDoorAndKeys(KeyDoor keyDoor)
        {
            // Position door
            keyDoor.DoorPosition = new Vector2(771, 377);

            // Spawn keys
            keyDoor.SpawnKey(new Vector2(70, 115));
            keyDoor.SpawnKey(new Vector2(280, 321));
            keyDoor.SpawnKey(new Vector2(603, 387));
        }
示例#8
0
文件: Level5.cs 项目: Azivast/JUMPER
        // Position door and spawn keys
        public static void SpawnDoorAndKeys(KeyDoor keyDoor)
        {
            // Position door
            keyDoor.DoorPosition = new Vector2(697, 373);

            // Spawn keys
            keyDoor.SpawnKey(new Vector2(777, 113));
            keyDoor.SpawnKey(new Vector2(252, 88));
            keyDoor.SpawnKey(new Vector2(73, 247));
        }
示例#9
0
文件: Level4.cs 项目: Azivast/JUMPER
        // Position door and spawn keys
        public static void SpawnDoorAndKeys(KeyDoor keyDoor)
        {
            // Position door
            keyDoor.DoorPosition = new Vector2(225, 302);

            // Spawn keys
            keyDoor.SpawnKey(new Vector2(350, 120));
            keyDoor.SpawnKey(new Vector2(395, 235));
            keyDoor.SpawnKey(new Vector2(85, 230));
        }
示例#10
0
        // Position door and spawn keys
        public static void SpawnDoorAndKeys(KeyDoor keyDoor)
        {
            // Position door
            keyDoor.DoorPosition = new Vector2(775, 223);

            // Spawn keys
            keyDoor.SpawnKey(new Vector2(164, 170));
            keyDoor.SpawnKey(new Vector2(395, 300));
            keyDoor.SpawnKey(new Vector2(444, 220));
        }
示例#11
0
文件: Level5.cs 项目: Azivast/JUMPER
        // Position door and spawn keys
        public static void SpawnDoorAndKeys(KeyDoor keyDoor)
        {
            // Position door
            keyDoor.DoorPosition = new Vector2(600, 144);

            // Spawn keys
            keyDoor.SpawnKey(new Vector2(657, 160));
            keyDoor.SpawnKey(new Vector2(475, 380));
            keyDoor.SpawnKey(new Vector2(175, 105));
        }
示例#12
0
        // Position door and spawn keys
        public static void SpawnDoorAndKeys(KeyDoor keyDoor)
        {
            // Position door
            keyDoor.DoorPosition = new Vector2(587, 335);

            // Spawn keys
            keyDoor.SpawnKey(new Vector2(50, 178));
            keyDoor.SpawnKey(new Vector2(414, 102));
            keyDoor.SpawnKey(new Vector2(184, 287));
        }
示例#13
0
        // Position door and spawn keys
        public static void SpawnDoorAndKeys(KeyDoor keyDoor)
        {
            // Position door
            keyDoor.DoorPosition = new Vector2(775, 302);

            // Spawn keys
            keyDoor.SpawnKey(new Vector2(775, 90));
            keyDoor.SpawnKey(new Vector2(80, 90));
            keyDoor.SpawnKey(new Vector2(525, 238));
        }
示例#14
0
 // Update
 public void Update(GameTime gameTime, TileManager tileManager, KeyDoor keyDoor, SpikeManager spikeManager)
 {
     // Check collisions
     checkPlayerToBreakableCollisions();
     MovePlayerWherePossible(tileManager);
     checkPlayerToSpikeCollisions();
     checkPlayerToEnemyCollision();
     checkPlayerToKeyCollisions();
     checkPlayerToDoorCollision();
     checkPlayerToHeartCollisions();
 }
示例#15
0
        // Position door and spawn keys
        public static void SpawnDoorAndKeys(KeyDoor keyDoor)
        {
            // Position door
            keyDoor.DoorPosition = new Vector2(388, 164);

            // Spawn keys
            keyDoor.SpawnKey(new Vector2(38, 307));
            keyDoor.SpawnKey(new Vector2(542, 108));
            keyDoor.SpawnKey(new Vector2(229, 270));
            keyDoor.SpawnKey(new Vector2(560, 270));
        }
示例#16
0
        // Position door and spawn keys
        public static void SpawnDoorAndKeys(KeyDoor keyDoor)
        {
            // Position door
            keyDoor.DoorPosition = new Vector2(180, 383);

            // Spawn keys
            keyDoor.SpawnKey(new Vector2(702, 113));
            keyDoor.SpawnKey(new Vector2(315, 170));
            keyDoor.SpawnKey(new Vector2(170, 110));
            keyDoor.SpawnKey(new Vector2(700, 373));
        }
示例#17
0
文件: Level8.cs 项目: Azivast/JUMPER
        // Position door and spawn keys
        public static void SpawnDoorAndKeys(KeyDoor keyDoor)
        {
            // Position door
            keyDoor.DoorPosition = new Vector2(460, 407);

            // Spawn keys
            keyDoor.SpawnKey(new Vector2(465, 210));
            keyDoor.SpawnKey(new Vector2(783, 210));
            keyDoor.SpawnKey(new Vector2(150, 265));
            keyDoor.SpawnKey(new Vector2(292, 130));
            keyDoor.SpawnKey(new Vector2(333, 360));
        }
示例#18
0
 public CollisionManager(
     PlayerManager player,
     EnemyManager enemyManager,
     BreakableManager breakableManager,
     SpikeManager spikeManager,
     KeyDoor keyDoor,
     HeartManager heartManager
     )
 {
     this.player           = player;
     this.enemyManager     = enemyManager;
     this.breakableManager = breakableManager;
     this.spikeManager     = spikeManager;
     this.keyDoor          = keyDoor;
     this.heartManager     = heartManager;
 }