// Load all tiles for level public static void LoadContent(ContentManager Content, GraphicsDevice GraphicsDevice) { tileManager = new TileManager(); // Load textures for level Texture2D block = Content.Load <Texture2D>(@"Sprites/Block2"); tileManager.AddTile(block, new Vector2(350, 5), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(340, 31), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(332, 58), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(320, 87), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(311, 113), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(303, 142), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(296, 169), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(285, 196), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(278, 221), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(431, 6), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(438, 34), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(446, 60), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(455, 87), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(464, 114), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(470, 139), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(478, 164), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(485, 192), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(496, 217), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(356, 294), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(437, 271), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(296, 364), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(185, 359), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(149, 321), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(103, 284), new Rectangle(0, 0, 25, 25)); //tileManager.AddTile(block, new Vector2(56, 246), new Rectangle(0, 0, 25, 25)); //tileManager.AddTile(block, new Vector2(153, 215), new Rectangle(0, 0, 25, 25)); //tileManager.AddTile(block, new Vector2(429, 358), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(479, 341), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(540, 382), new Rectangle(0, 0, 25, 25)); //tileManager.AddTile(block, new Vector2(587, 342), new Rectangle(0, 0, 25, 25)); //tileManager.AddTile(block, new Vector2(371, 377), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(248, 328), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(652, 319), new Rectangle(0, 0, 25, 25)); //tileManager.AddTile(block, new Vector2(703, 277), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(752, 259), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(777, 259), new Rectangle(0, 0, 25, 25)); }
// Load all tiles for level public static void LoadContent(ContentManager Content, GraphicsDevice GraphicsDevice) { tileManager = new TileManager(); // Load textures for level Texture2D block = Content.Load <Texture2D>(@"Sprites/Block"); breakable = Content.Load <Texture2D>(@"Sprites/Breakable"); tileManager.AddTile(block, new Vector2(0, 240), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(25, 240), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(50, 240), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(75, 240), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(100, 240), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(125, 240), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(150, 240), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(175, 240), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(200, 240), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(225, 240), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(250, 240), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(275, 240), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(275, 215), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(300, 240), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(325, 240), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(350, 240), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(375, 240), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(400, 240), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(425, 240), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(450, 240), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(475, 240), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(500, 240), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(525, 240), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(550, 240), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(575, 240), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(600, 240), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(600, 215), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(625, 240), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(650, 240), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(675, 240), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(700, 240), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(725, 240), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(750, 240), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(775, 240), new Rectangle(0, 0, 25, 25)); }
// Load all tiles for level public static void LoadContent(ContentManager Content, GraphicsDevice GraphicsDevice) { tileManager = new TileManager(); // Load textures for level Texture2D block = Content.Load <Texture2D>(@"Sprites/Block2"); tileManager.AddTile(block, new Vector2(691, 398), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(641, 348), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(591, 298), new Rectangle(0, 0, 25, 25)); //tileManager.AddTile(block, new Vector2(541, 248), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(491, 198), new Rectangle(0, 0, 25, 25)); //tileManager.AddTile(block, new Vector2(441, 148), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(391, 98), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(341, 48), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(291, -2), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(321, 369), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(411, 291), new Rectangle(0, 0, 25, 25)); //tileManager.AddTile(block, new Vector2(732, 113), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(588, 51), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(642, 192), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(180, 419), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(78, 240), new Rectangle(0, 0, 25, 25)); //tileManager.AddTile(block, new Vector2(201, 176), new Rectangle(0, 0, 25, 25)); //tileManager.AddTile(block, new Vector2(152, 268), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(261, 247), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(319, 193), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(264, 151), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(300, 117), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(321, 77), new Rectangle(0, 0, 25, 25)); }
// Load all tiles for level public static void LoadContent(ContentManager Content, GraphicsDevice GraphicsDevice) { tileManager = new TileManager(); // Load textures for level Texture2D block = Content.Load <Texture2D>(@"Sprites/Block"); Spike = Content.Load <Texture2D>(@"Sprites/Spike Inverted"); tileManager.AddTile(block, new Vector2(784, 0), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(784, 25), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(784, 50), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(784, 75), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(784, 100), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(709, 50), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(709, 25), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(709, 0), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(684, 0), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(659, 0), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(634, 0), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(684, 25), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(684, 50), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(659, 25), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(709, 125), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(784, 125), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(684, 125), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(659, 125), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(634, 125), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(609, 125), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(609, 100), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(584, 75), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(584, 100), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(584, 125), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(559, 75), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(559, 100), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(559, 125), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(534, 125), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(509, 125), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(484, 125), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(459, 125), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(434, 125), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(409, 125), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(384, 125), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(359, 125), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(334, 125), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(309, 125), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(284, 125), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(259, 125), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(559, 50), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(400, 200), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(734, 125), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(234, 125), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(209, 125), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(184, 125), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(159, 125), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(134, 125), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(109, 125), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(84, 125), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(59, 125), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(34, 125), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(34, 100), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(34, 75), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(34, 50), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(59, 75), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(59, 100), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(84, 100), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(134, 150), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(134, 175), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(134, 200), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(134, 225), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(134, 250), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(134, 275), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(134, 300), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(134, 325), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(134, 350), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(-1, 436), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(24, 436), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(49, 436), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(74, 436), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(99, 436), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(124, 436), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(149, 436), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(174, 436), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(199, 436), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(224, 436), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(249, 436), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(274, 436), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(299, 436), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(324, 436), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(349, 436), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(374, 436), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(399, 436), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(424, 436), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(449, 436), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(474, 436), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(499, 436), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(524, 436), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(549, 436), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(574, 436), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(599, 436), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(624, 436), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(649, 436), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(674, 436), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(699, 436), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(724, 436), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(749, 436), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(774, 436), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(799, 436), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(375, 200), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(375, 225), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(400, 225), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(350, 200), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(425, 200), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(759, 125), new Rectangle(0, 0, 25, 25)); }
// Load all tiles for level public static void LoadContent(ContentManager Content, GraphicsDevice GraphicsDevice) { tileManager = new TileManager(); // Load textures for level Texture2D block = Content.Load <Texture2D>(@"Sprites/Block"); Texture2D block9x1 = Content.Load <Texture2D>(@"Sprites/Block 9x1"); Texture2D block1x6 = Content.Load <Texture2D>(@"Sprites/Block 1x6"); // Right up tileManager.AddTile(block1x6, new Vector2(775, 205), new Rectangle(0, 0, 25, 150)); tileManager.AddTile(block, new Vector2(775, 180), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(775, 155), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(775, 130), new Rectangle(0, 0, 25, 25)); // Right lower tileManager.AddTile(block, new Vector2(650, 180), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(625, 180), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(600, 180), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(575, 180), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(550, 180), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(525, 180), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(500, 180), new Rectangle(0, 0, 25, 25)); // Right lower-up-down tileManager.AddTile(block, new Vector2(625, 130), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(625, 155), new Rectangle(0, 0, 25, 25)); // Right upper tileManager.AddTile(block9x1, new Vector2(575, 105), new Rectangle(0, 0, 225, 25)); tileManager.AddTile(block, new Vector2(550, 105), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(525, 105), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(500, 105), new Rectangle(0, 0, 25, 25)); // Mid right square tileManager.AddTile(block1x6, new Vector2(625, 255), new Rectangle(0, 0, 25, 150)); tileManager.AddTile(block, new Vector2(600, 255), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(575, 255), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(550, 255), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(525, 255), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block1x6, new Vector2(500, 255), new Rectangle(0, 0, 25, 150)); // Lower tileManager.AddTile(block9x1, new Vector2(575, 405), new Rectangle(0, 0, 225, 25)); tileManager.AddTile(block9x1, new Vector2(350, 405), new Rectangle(0, 0, 225, 25)); tileManager.AddTile(block, new Vector2(325, 405), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(300, 405), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(275, 405), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(250, 405), new Rectangle(0, 0, 25, 25)); // Mid left tileManager.AddTile(block1x6, new Vector2(250, 130), new Rectangle(0, 0, 25, 150)); // Mid mid tileManager.AddTile(block, new Vector2(275, 255), new Rectangle(0, 0, 25, 25)); // Mid mid down tileManager.AddTile(block1x6, new Vector2(300, 205), new Rectangle(0, 0, 25, 150)); // Mid right tileManager.AddTile(block, new Vector2(325, 205), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(350, 205), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(375, 205), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(400, 205), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(425, 205), new Rectangle(0, 0, 25, 25)); // Left platforms tileManager.AddTile(block, new Vector2(375, 355), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(425, 305), new Rectangle(0, 0, 25, 25)); // Left down tileManager.AddTile(block, new Vector2(250, 380), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(250, 355), new Rectangle(0, 0, 25, 25)); // Left lower tileManager.AddTile(block, new Vector2(250, 330), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(225, 330), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(200, 330), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(175, 330), new Rectangle(0, 0, 25, 25)); // Left lower-upper tileManager.AddTile(block1x6, new Vector2(75, 205), new Rectangle(0, 0, 25, 150)); tileManager.AddTile(block1x6, new Vector2(75, 80), new Rectangle(0, 0, 25, 150)); // Left upper tileManager.AddTile(block9x1, new Vector2(75, 55), new Rectangle(0, 0, 225, 25)); }
// Load all tiles for level public static void LoadContent(ContentManager Content, GraphicsDevice GraphicsDevice) { tileManager = new TileManager(); // Load textures for level Texture2D block = Content.Load <Texture2D>(@"Sprites/Block"); // Top left tileManager.AddTile(block, new Vector2(0, 88), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(25, 88), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(50, 88), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(75, 88), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(100, 88), new Rectangle(0, 0, 25, 25)); // Top left down tileManager.AddTile(block, new Vector2(100, 113), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(100, 138), new Rectangle(0, 0, 25, 25)); // Top center tileManager.AddTile(block, new Vector2(75, 163), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(100, 163), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(125, 163), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(150, 163), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(175, 163), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(200, 163), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(225, 163), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(250, 163), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(275, 163), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(300, 163), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(325, 163), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(350, 163), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(375, 163), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(400, 163), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(425, 163), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(450, 163), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(475, 163), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(500, 163), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(525, 163), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(550, 163), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(575, 163), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(600, 163), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(575, 138), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(600, 138), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(600, 113), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(725, 113), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(725, 138), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(750, 138), new Rectangle(0, 0, 25, 25)); // Top Right tileManager.AddTile(block, new Vector2(725, 163), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(750, 163), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(775, 163), new Rectangle(0, 0, 25, 25)); // Mid line right tileManager.AddTile(block, new Vector2(525, 263), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(550, 263), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(575, 263), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(600, 263), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(625, 263), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(650, 263), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(675, 263), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(700, 263), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(725, 263), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(750, 263), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(775, 263), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(775, 238), new Rectangle(0, 0, 25, 25)); // Mid line down right tileManager.AddTile(block, new Vector2(525, 288), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(550, 288), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(525, 313), new Rectangle(0, 0, 25, 25)); // Mid line platforms tileManager.AddTile(block, new Vector2(450, 263), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(425, 263), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(350, 263), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(325, 263), new Rectangle(0, 0, 25, 25)); // Mid line left tileManager.AddTile(block, new Vector2(250, 263), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(225, 263), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(200, 263), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(175, 263), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(150, 263), new Rectangle(0, 0, 25, 25)); // Mid line down left tileManager.AddTile(block, new Vector2(250, 288), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(250, 313), new Rectangle(0, 0, 25, 25)); // Lower line tileManager.AddTile(block, new Vector2(50, 338), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(75, 338), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(100, 338), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(125, 338), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(150, 338), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(175, 338), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(200, 338), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(225, 338), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(250, 338), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(275, 338), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(300, 338), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(325, 338), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(350, 338), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(375, 338), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(400, 338), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(425, 338), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(450, 338), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(475, 338), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(500, 338), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(525, 338), new Rectangle(0, 0, 25, 25)); // Lower Left down tileManager.AddTile(block, new Vector2(50, 188), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(50, 213), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(50, 238), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(50, 263), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(50, 288), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(50, 313), new Rectangle(0, 0, 25, 25)); }
// Load all tiles for level public static void LoadContent(ContentManager Content, GraphicsDevice GraphicsDevice) { tileManager = new TileManager(); // Load textures for level Texture2D block = Content.Load <Texture2D>(@"Sprites/Block2"); tileManager.AddTile(block, new Vector2(587, 63), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(562, 63), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(496, 102), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(373, 102), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(246, 102), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(184, 150), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(309, 150), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(438, 150), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(184, 50), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(309, 50), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(438, 50), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(184, 312), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(184, 424), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(308, 424), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(438, 424), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(309, 312), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(438, 312), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(126, 371), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(248, 371), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(374, 371), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(497, 371), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(43, 371), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(89, 278), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(89, 253), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(89, 228), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(89, 203), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(89, 178), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(89, 153), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(89, 128), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(89, 103), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(114, 103), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(89, 78), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(562, 371), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(587, 371), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(612, 63), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(612, 38), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(612, 13), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(612, 88), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(612, 113), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(612, 138), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(612, 163), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(612, 188), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(612, 213), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(612, 238), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(612, 263), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(612, 288), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(612, 313), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(612, 338), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(612, 363), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(612, 388), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(612, -12), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(612, 413), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(612, 438), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(612, 463), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(89, -2), new Rectangle(0, 0, 25, 25)); }
// Load all tiles for level public static void LoadContent(ContentManager Content, GraphicsDevice GraphicsDevice) { tileManager = new TileManager(); // Load textures for level Texture2D block = Content.Load <Texture2D>(@"Sprites/Block"); // Top tileManager.AddTile(block, new Vector2(0, 202), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(25, 202), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(50, 202), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(75, 202), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(100, 202), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(125, 202), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(150, 202), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(175, 202), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(200, 202), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(225, 202), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(250, 202), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(275, 202), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(300, 202), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(325, 202), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(350, 202), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(375, 202), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(400, 202), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(425, 202), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(450, 202), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(475, 202), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(500, 202), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(525, 202), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(550, 202), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(575, 202), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(600, 202), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(625, 202), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(750, 202), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(775, 202), new Rectangle(0, 0, 25, 25)); // Left down tileManager.AddTile(block, new Vector2(625, 227), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(625, 252), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(625, 277), new Rectangle(0, 0, 25, 25)); // Right down tileManager.AddTile(block, new Vector2(750, 227), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(750, 252), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(750, 277), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(750, 302), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(750, 327), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(750, 352), new Rectangle(0, 0, 25, 25)); // Mid tileManager.AddTile(block, new Vector2(50, 277), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(75, 277), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(100, 277), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(125, 277), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(150, 277), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(175, 277), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(200, 277), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(225, 277), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(250, 277), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(275, 277), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(300, 277), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(325, 277), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(350, 277), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(375, 277), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(400, 277), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(425, 277), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(450, 277), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(475, 277), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(500, 277), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(525, 277), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(550, 277), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(575, 277), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(600, 277), new Rectangle(0, 0, 25, 25)); // Lower tileManager.AddTile(block, new Vector2(50, 352), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(75, 352), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(100, 352), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(125, 352), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(150, 352), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(175, 352), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(625, 352), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(650, 352), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(675, 352), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(700, 352), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(725, 352), new Rectangle(0, 0, 25, 25)); // Lower Left tileManager.AddTile(block, new Vector2(50, 327), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(50, 302), new Rectangle(0, 0, 25, 25)); }
// Load all tiles for level public static void LoadContent(ContentManager Content, GraphicsDevice GraphicsDevice) { tileManager = new TileManager(); // Load textures for level Texture2D block = Content.Load <Texture2D>(@"Sprites/Block2"); tileManager.AddTile(block, new Vector2(340, 439), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(365, 439), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(390, 439), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(720, 286), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(745, 286), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(770, 286), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(795, 286), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(658, 286), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(633, 286), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(608, 286), new Rectangle(0, 0, 25, 25)); //tileManager.AddTile(block, new Vector2(451, 408), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(511, 367), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(691, 409), new Rectangle(0, 0, 25, 25)); //tileManager.AddTile(block, new Vector2(586, 408), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(565, 317), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(271, 440), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(196, 425), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(87, 354), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(146, 390), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(34, 319), new Rectangle(0, 0, 25, 25)); //tileManager.AddTile(block, new Vector2(166, 301), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(232, 271), new Rectangle(0, 0, 25, 25)); //tileManager.AddTile(block, new Vector2(139, 233), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(230, 181), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(323, 173), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(403, 173), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(478, 152), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(541, 125), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(610, 102), new Rectangle(0, 0, 25, 25)); }
// Load all tiles for level public static void LoadContent(ContentManager Content, GraphicsDevice GraphicsDevice) { tileManager = new TileManager(); // Load textures for level Texture2D block = Content.Load <Texture2D>(@"Sprites/Block2"); breakable = Content.Load <Texture2D>(@"Sprites/Breakable2"); tileManager.AddTile(block, new Vector2(9, 64), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(34, 64), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(63, 140), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(114, 219), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(190, 291), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(273, 346), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(355, 373), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(434, 393), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(515, 403), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(595, 412), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(671, 413), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(746, 413), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(771, 413), new Rectangle(0, 0, 25, 25)); }
// Load all tiles for level public static void LoadContent(ContentManager Content, GraphicsDevice GraphicsDevice) { tileManager = new TileManager(); // Load textures for level Texture2D block = Content.Load <Texture2D>(@"Sprites/Block"); // Left line up tileManager.AddTile(block, new Vector2(73, 183), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(73, 158), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(73, 133), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(73, 108), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(73, 83), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(73, 58), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(73, 33), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(73, 8), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(73, -17), new Rectangle(0, 0, 25, 25)); // Left floating blocks tileManager.AddTile(block, new Vector2(330, 183), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(281, 143), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(232, 133), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(179, 108), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(130, 83), new Rectangle(0, 0, 25, 25)); // Mid line left tileManager.AddTile(block, new Vector2(-10, 208), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(15, 208), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(40, 208), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(65, 208), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(90, 208), new Rectangle(0, 0, 25, 25)); // Right floating blocks tileManager.AddTile(block, new Vector2(621, 183), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(673, 158), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(722, 133), new Rectangle(0, 0, 25, 25)); // Mid line right tileManager.AddTile(block, new Vector2(150, 208), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(175, 208), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(200, 208), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(225, 208), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(250, 208), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(275, 208), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(300, 208), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(325, 208), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(350, 208), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(375, 208), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(400, 208), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(425, 208), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(450, 208), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(475, 208), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(500, 208), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(525, 208), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(550, 208), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(575, 208), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(600, 208), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(625, 208), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(650, 208), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(675, 208), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(700, 208), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(725, 208), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(750, 208), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(775, 208), new Rectangle(0, 0, 25, 25)); // Left down starting pos tileManager.AddTile(block, new Vector2(453, 0), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(453, 25), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(453, 50), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(453, 75), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(453, 100), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(453, 125), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(453, 150), new Rectangle(0, 0, 25, 25)); // Mid upper starting pos tileManager.AddTile(block, new Vector2(478, 37), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(503, 37), new Rectangle(0, 0, 25, 25)); // Mid lower starting pos tileManager.AddTile(block, new Vector2(503, 109), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(528, 109), new Rectangle(0, 0, 25, 25)); // Right down starting pos tileManager.AddTile(block, new Vector2(553, 0), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(553, 25), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(553, 50), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(553, 75), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(553, 100), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(553, 125), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(553, 150), new Rectangle(0, 0, 25, 25)); // Left line down tileManager.AddTile(block, new Vector2(-10, 233), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(-10, 258), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(-10, 283), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(-10, 308), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(-10, 333), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(-10, 358), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(15, 358), new Rectangle(0, 0, 25, 25)); // Mid line down tileManager.AddTile(block, new Vector2(365, 358), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(390, 358), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(390, 333), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(390, 308), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(390, 283), new Rectangle(0, 0, 25, 25)); // Lower floating blocks tileManager.AddTile(block, new Vector2(118, 283), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(201, 283), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(263, 283), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(326, 283), new Rectangle(0, 0, 25, 25)); // Lower Line tileManager.AddTile(block, new Vector2(415, 288), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(415, 263), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(440, 288), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(465, 288), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(490, 288), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(515, 288), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(540, 288), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(565, 288), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(590, 288), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(615, 283), new Rectangle(0, 0, 25, 25)); // Lower line Right up tileManager.AddTile(block, new Vector2(615, 258), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(615, 233), new Rectangle(0, 0, 25, 25)); }
// Load all tiles for level public static void LoadContent(ContentManager Content, GraphicsDevice GraphicsDevice) { tileManager = new TileManager(); // Load textures for level Texture2D block = Content.Load <Texture2D>(@"Sprites/Block"); tileManager.AddTile(block, new Vector2(0, 391), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(25, 391), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(50, 391), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(75, 391), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(100, 391), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(125, 391), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(150, 391), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(175, 391), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(200, 391), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(225, 391), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(250, 391), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(275, 391), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(300, 391), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(325, 391), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(350, 391), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(375, 391), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(400, 391), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(425, 391), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(450, 391), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(475, 391), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(500, 391), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(525, 391), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(550, 391), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(575, 391), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(600, 391), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(625, 391), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(650, 391), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(675, 391), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(700, 391), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(725, 391), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(750, 391), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(775, 391), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(692, 366), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(717, 366), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(742, 366), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(767, 366), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(792, 366), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(727, 341), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(752, 341), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(777, 341), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(50, 286), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(75, 286), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(100, 286), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(125, 286), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(150, 286), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(175, 286), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(200, 286), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(225, 286), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(250, 286), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(275, 286), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(300, 286), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(325, 286), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(350, 286), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(375, 286), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(400, 286), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(425, 286), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(450, 286), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(475, 286), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(500, 286), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(525, 286), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(550, 286), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(575, 286), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(600, 286), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(625, 286), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(775, 216), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(750, 216), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(725, 216), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(700, 216), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(675, 216), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(650, 216), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(625, 216), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(600, 216), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(575, 216), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(550, 216), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(525, 216), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(500, 216), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(500, 191), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(500, 166), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(475, 216), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(475, 191), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(450, 216), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(425, 216), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(400, 216), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(150, 261), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(150, 236), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(150, 211), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(150, 186), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(400, 141), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(400, 116), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(400, 91), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(400, 66), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(400, 41), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(400, 16), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(375, 92), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(350, 92), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(325, 92), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(375, 67), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(350, 67), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(325, 67), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(300, 67), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(275, 67), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(250, 67), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(225, 67), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(375, 42), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(350, 42), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(325, 42), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(300, 42), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(275, 42), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(250, 42), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(225, 42), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(200, 42), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(175, 42), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(150, 42), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(125, 42), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(100, 42), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(75, 42), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(50, 42), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(25, 42), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(0, 42), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(50, 67), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(50, 92), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(50, 117), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(50, 142), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(50, 167), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(50, 192), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(75, 192), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(25, 192), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(0, 192), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(775, 153), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(109, 366), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(300, 366), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(512, 366), new Rectangle(0, 0, 25, 25)); }
// Load all tiles for level public static void LoadContent(ContentManager Content, GraphicsDevice GraphicsDevice) { tileManager = new TileManager(); // Load textures for level Texture2D block = Content.Load <Texture2D>(@"Sprites/Block2"); tileManager.AddTile(block, new Vector2(759, 227), new Rectangle(0, 0, 25, 25)); //tileManager.AddTile(block, new Vector2(684, 227), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(609, 227), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(534, 227), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(459, 227), new Rectangle(0, 0, 25, 25)); //tileManager.AddTile(block, new Vector2(384, 227), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(309, 227), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(234, 227), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(159, 227), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(84, 227), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(9, 227), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(9, 202), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(26, 252), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(101, 252), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(176, 252), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(251, 252), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(326, 252), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(401, 252), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(476, 252), new Rectangle(0, 0, 25, 25)); //tileManager.AddTile(block, new Vector2(551, 252), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(626, 252), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(701, 252), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(776, 252), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(70, 293), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(145, 293), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(220, 293), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(295, 293), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(370, 293), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(520, 293), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(595, 293), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(670, 293), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(745, 293), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(59, 178), new Rectangle(0, 0, 25, 25)); //tileManager.AddTile(block, new Vector2(134, 175), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(209, 175), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(284, 175), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(359, 175), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(434, 175), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(509, 175), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(584, 175), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(659, 175), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(734, 175), new Rectangle(0, 0, 25, 25)); //tileManager.AddTile(block, new Vector2(44, 96), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(126, 56), new Rectangle(0, 0, 25, 25)); //tileManager.AddTile(block, new Vector2(88, 389), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(226, 448), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(657, 354), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(327, 377), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(448, 443), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(230, 116), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(467, 23), new Rectangle(0, 0, 25, 25)); //tileManager.AddTile(block, new Vector2(768, 25), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(422, 113), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(620, 95), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(268, 14), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(554, 406), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(473, 443), new Rectangle(0, 0, 25, 25)); }
// Load all tiles for level public static void LoadContent(ContentManager Content, GraphicsDevice GraphicsDevice) { tileManager = new TileManager(); // Load textures for level Texture2D block = Content.Load <Texture2D>(@"Sprites/Block2"); tileManager.AddTile(block, new Vector2(34, 77), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(87, 137), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(140, 111), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(235, 136), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(287, 95), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(362, 68), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(412, 138), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(523, 143), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(595, 116), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(634, 280), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(689, 329), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(556, 323), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(622, 365), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(484, 360), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(425, 332), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(375, 385), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(310, 374), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(178, 383), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(115, 410), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(49, 413), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(24, 413), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(-1, 413), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(9, 77), new Rectangle(0, 0, 25, 25)); }
// Load all tiles for level public static void LoadContent(ContentManager Content, GraphicsDevice GraphicsDevice) { tileManager = new TileManager(); // Load textures for level Texture2D block = Content.Load <Texture2D>(@"Sprites/Block2"); tileManager.AddTile(block, new Vector2(602, 66), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(636, 104), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(666, 138), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(702, 176), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(784, 139), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(585, 163), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(569, 277), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(554, 388), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(402, 387), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(229, 387), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(132, 387), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(317, 345), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(481, 426), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(86, 387), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(86, 362), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(71, 337), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(71, 312), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(57, 287), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(57, 262), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(42, 237), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(42, 212), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(28, 187), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(28, 162), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(15, 137), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(15, 112), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(135, 112), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(247, 112), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(354, 112), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(469, 112), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(512, 112), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(512, 87), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(512, 62), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(512, 37), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(512, 12), new Rectangle(0, 0, 25, 25)); tileManager.AddTile(block, new Vector2(512, -13), new Rectangle(0, 0, 25, 25)); }