Beispiel #1
0
    def addWalls(self):
        wall = ZONE2_RESOURCES["walls"]
        pillar = ZONE2_RESOURCES["pillars"]
        platWall = [
            wall["plat_top"][0], wall["plat_mid"][0], wall["plat_bot"][0]
        ]
        pillarWall = [
            pillar["steel_top"][0], pillar["steel_mid"][0],
            pillar["steel_bot"][0]
        ]

        boundaries = \
        [
            Wall(0, 962, 9, "h", wall["ground"], self.screen),
            Wall(0, 1074, 9, "h", wall["ground_clean"], self.screen),

            Wall(1375, 962, 6,  "h", wall["ground"], self.screen),
            Wall(1375, 1074, 6, "h", wall["ground_clean"], self.screen),
        ]
        boundaries[0].render.shrinkBy = (0, -50)

        obstacles = \
        [
            Wall(288, 706, 2,"v", platWall, self.screen),

            Wall(1814, 518, 1, "h", wall["corner_top_right"], self.screen),
            Wall(1750, 518, 1, "h", wall["corner_top_left"], self.screen),
            Wall(1750, 454, 1, "h", wall["corner_bot_right"], self.screen),
            Wall(1814, 454, 1, "h", wall["corner_bot_left"], self.screen),

        ]

        return boundaries + obstacles
Beispiel #2
0
    def addWalls(self):
        wall = ZONE1_RESOURCES["walls"]

        boundaries = \
        [
            Wall(0, 10, 8, "v", wall["boundary_left"], self.screen),
            Wall(19, 478, 3, "h", wall["boundary_bot"], self.screen),
            Wall(0, 478, 1, "h", wall["inner_corner_left"], self.screen),
            # Wall(170, 260, 4, "v", wall["boundary_right"], self.screen),
            Wall(170, 478, 1, "h", wall["inner_corner_right"], self.screen),

            Wall(584, 478, 1, "h", wall["boundary_bot"], self.screen),
            Wall(628, 138, 6, "v", wall["boundary_right"], self.screen),
            Wall(164, 138, 8, "h", wall["boundary_top"], self.screen),
            Wall(160, 138, 1, "v", wall["corner_top_left"], self.screen),
            Wall(160, 10, 2, "v", wall["boundary_right"], self.screen),
            Wall(628, 138, 1, "v", wall["upper_corner_right"], self.screen),
            Wall(628, 478, 1, "h", wall["inner_corner_right"], self.screen),

            Wall(170, 260, 1, "v", wall["plat_top"], self.screen),
            Wall(170, 324, 3, "v", wall["plat_mid"], self.screen),
            Wall(170, 470, 1, "v", wall["plat_bot"], self.screen),

            Wall(106, 478, 1, "v", wall["bot_ending_right"], self.screen),
            Wall(520, 478, 1, "v", wall["bot_ending_left"], self.screen),

        ]

        obstacles = \
        [
            Wall(48, 418, 1, "h", wall["block_left"], self.screen),
            Wall(108, 418, 1, "h", wall["block_right"], self.screen),
        ]
        return boundaries + obstacles
Beispiel #3
0
    def addWalls(self):
        wall = ZONE1_RESOURCES["walls"]
        blockWall = [wall["block_left"][0],
                     wall["block_mid"][0],
                     wall["block_right"][0]]

        boundaries = \
            [
                #Wall(600, 0, 9, "v", wall["boundary_right"], self.screen),
                Wall(600, 52, 1, "v", wall["plat_top"], self.screen),
                Wall(600, 116, 7, "v", wall["plat_mid"], self.screen),
                Wall(600, 564, 1, "v", wall["plat_bot"], self.screen),

                Wall(0, 750, 20, "h", wall["boundary_bot"], self.screen),
                Wall(0, 0, 12, "v", wall["boundary_left"], self.screen),
                Wall(0, 0, 20, "h", wall["boundary_top"], self.screen),
                Wall(1250, 0, 12, "v", wall["boundary_right"], self.screen),


                Wall(0, 0, 1, "v", wall["upper_corner_left"], self.screen),
                Wall(0, 750, 1, "v", wall["inner_corner_left"], self.screen),
                Wall(1250, 0, 1, "v", wall["upper_corner_right"], self.screen),
                Wall(1250, 750, 1, "v", wall["inner_corner_right"], self.screen),
            ]

        obstacles = \
            [
                Wall(167, 330, 3, "h", blockWall, self.screen),
                Wall(220, 600, 1, "h", blockWall, self.screen),
            ]

        return boundaries + obstacles
Beispiel #4
0
    def addWalls(self):
        wall = ZONE1_RESOURCES["walls"]
        platWall = [wall["plat_top"][0],
                    wall["plat_mid"][0],
                    wall["plat_bot"][0]]

        boundaries = \
            [
                Wall(50, 0, 8, "h", wall["boundary_top"], self.screen),
                Wall(0, 50, 8, "v", wall["boundary_left"], self.screen),
                Wall(0, 548, 15, "h", wall["boundary_bot"], self.screen),
                Wall(0, 548, 1, "h", wall["inner_corner_left"], self.screen),
                Wall(952, 50, 8, "v", wall["boundary_right"], self.screen),
                Wall(952, 548, 1, "h", wall["inner_corner_right"], self.screen)
            ]

        obstacles = \
            [
                Wall(210, 300, 1, "h", wall["block_left"], self.screen),
                Wall(265, 300, 1, "h", wall["block_right"], self.screen),

                Wall(435, 490, 1, "h", wall["block_left"], self.screen),
                Wall(490, 490, 1, "h", wall["block_right"], self.screen),

                Wall(655, 300, 1, "h", wall["block_left"], self.screen),
                Wall(710, 300, 1, "h", wall["block_right"], self.screen),

                Wall(770, 105, 2, "v", platWall, self.screen),
            ]

        return boundaries + obstacles
Beispiel #5
0
    def addWalls(self):
        assets = ZONE1_RESOURCES["walls"]
        boundaries = \
        [
            Wall(0, 10, 8, "v", assets["boundary_left"], self.screen),
            Wall(19, 478, 4, "h", assets["boundary_bot"], self.screen),
            Wall(320, 478, 5, "h", assets["boundary_bot"], self.screen),
            Wall(628, 138, 6, "v", assets["boundary_right"], self.screen),
            Wall(164, 138, 8, "h", assets["boundary_top"], self.screen),
            Wall(160, 138, 1, "v", assets["corner_top_left"], self.screen),
            Wall(160, 10, 2, "v", assets["boundary_right"], self.screen),
            Wall(628, 138, 1, "v", assets["upper_corner_right"], self.screen),
            Wall(0, 478, 1, "h", assets["inner_corner_left"], self.screen),
            Wall(628, 478, 1, "h", assets["inner_corner_right"], self.screen),
            Wall(240, 478, 1, "h", assets["inner_corner_right"], self.screen),
            Wall(240, 426, 1, "h", assets["corner_bot_right"], self.screen),
            Wall(308, 426, 1, "h", assets["corner_bot_left"], self.screen),
            Wall(320, 478, 1, "h", assets["inner_corner_left"], self.screen)
        ]

        obstacles = \
        [
            Wall(48, 418, 1, "h", assets["block_left"], self.screen),
            Wall(108, 418, 1, "h", assets["block_right"], self.screen),
            Wall(170, 450, 1, "h", assets["block_small"], self.screen),
        ]
        return boundaries + obstacles
Beispiel #6
0
    def addWalls(self):
        wall = ZONE2_RESOURCES["walls"]
        pillar = ZONE2_RESOURCES["pillars"]
        platWall = [
            wall["plat_top"][0], wall["plat_mid"][0], wall["plat_bot"][0]
        ]
        pillarWall = [
            pillar["steel_top"][0], pillar["steel_mid"][0],
            pillar["steel_bot"][0]
        ]

        boundaries = \
        [
            Wall(0, 962, 4, "h", wall["ground"], self.screen),
            Wall(0, 1074, 4, "h", wall["ground_clean"], self.screen),

            Wall(675, 962, 4, "h", wall["ground"], self.screen),
            Wall(1550, 962, 5, "h", wall["ground"], self.screen),

            Wall(675, 1074, 12, "h", wall["ground_clean"], self.screen),
            # Wall(0, 500, 6, "v", pillarWall, self.screen),
        ]
        boundaries[0].render.shrinkBy = (0, -50)

        obstacles = \
        [
            Wall(0, 898, 1, "h", wall["single_plat"], self.screen),
            Wall(160, 898, 1, "h", wall["single_plat"], self.screen),
            Wall(288, 770, 1, "h", wall["single_plat"], self.screen),

            Wall(-32, 770, 4, "h", wall["block_mid"], self.screen),
            Wall(224, 770, 1, "h", wall["block_right"], self.screen),

            Wall(288, 898, 1, "h", wall["corner_top_right"], self.screen),
            Wall(224, 898, 1, "h", wall["corner_top_left"], self.screen),
            Wall(224, 834, 1, "h", wall["corner_bot_right"], self.screen),
            Wall(288, 834, 1, "h", wall["corner_bot_left"], self.screen),

            Wall(192, 738, 1, "h", wall["block_small"], self.screen),
            Wall(96, 930, 1, "h", wall["block_small"], self.screen),

            Wall(875, 850, 1, "h", wall["block_small"], self.screen),
            Wall(1050, 750, 1, "h", wall["block_small"], self.screen),
            Wall(1325, 1010, 1, "h", wall["block_small"], self.screen),

            Wall(1815, 706, 2, "v", platWall, self.screen),
            #Wall(210, 300, 1, "h", wall["block_left"], self.screen),
            #Wall(265, 300, 1, "h", wall["block_right"], self.screen),

            #Wall(435, 490, 1, "h", wall["block_left"], self.screen),
            #Wall(490, 490, 1, "h", wall["block_right"], self.screen),

            #Wall(655, 300, 1, "h", wall["block_left"], self.screen),
            #Wall(710, 300, 1, "h", wall["block_right"], self.screen),

            #Wall(770, 105, 2, "v", platWall, self.screen),
        ]

        return boundaries + obstacles
Beispiel #7
0
    def addWalls(self):
        wall = ZONE1_RESOURCES["walls"]
        pillar = ZONE1_RESOURCES["pillars"]
        pillarWall = [
            pillar["steel_top"][0], pillar["steel_mid"][0],
            pillar["steel_bot"][0]
        ]
        blockWall = [
            wall["block_left"][0], wall["block_mid"][0], wall["block_right"][0]
        ]

        boundaries = \
            [
                Wall(12, 288, 3, "v", wall["boundary_left"], self.screen),
                Wall(4, 52, 1, "v", wall["boundary_left"], self.screen),
                Wall(4, 0, 1, "h", wall["upper_corner_left"], self.screen),
                Wall(0, 116, 1, "h", wall["corner_top_right"], self.screen),
                Wall(52, 0, 6, "h", wall["boundary_top"], self.screen),
                Wall(432, 0, 1, "h", wall["corner_top_right"], self.screen),
                Wall(0, 236, 1, "v", wall["corner_bot_left"], self.screen),
            ]

        obstacles = \
            [
                Wall(139, 288, 2, "h", blockWall, self.screen),
                Wall(3411, 304, 2, "h", blockWall, self.screen),

                Wall(3, 167, 2, "v", pillarWall, self.screen),
                Wall(3359, 217, 3, "v", pillarWall, self.screen),

                Wall(494, 256, 1, "h", wall["block_small"], self.screen),
                Wall(632, 169, 1, "h", wall["block_small"], self.screen),
                Wall(805, 126, 1, "h", wall["block_small"], self.screen),
                Wall(805, 304, 1, "h", wall["block_small"], self.screen),
                Wall(1021, 230, 1, "h", wall["block_small"], self.screen),
                Wall(974, 384, 1, "h", wall["block_small"], self.screen),
                Wall(3347, 302, 1, "h", wall["block_small"], self.screen),

                Wall(1692, 116, 2, "h", wall["boundary_bot"], self.screen),
                Wall(1632, 168, 2, "v", wall["boundary_right"], self.screen),
                Wall(1780, 168, 2, "v", wall["boundary_left"], self.screen),
                Wall(1692, 296, 2, "h", wall["boundary_top"], self.screen),

                Wall(1632, 116, 1, "h", wall["corner_bot_right"], self.screen),
                Wall(1632, 296, 1, "h", wall["corner_top_left"], self.screen),
                Wall(1768, 116, 1, "h", wall["corner_bot_left"], self.screen),
                Wall(1776, 296, 1, "h", wall["corner_top_right"], self.screen),

                Wall(1936, 224, 1, "h", wall["block_small"], self.screen),
                Wall(2144, 373, 1, "h", wall["block_small"], self.screen),
            ]

        return boundaries + obstacles
Beispiel #8
0
    def addWalls(self):
        wall = ZONE1_RESOURCES["walls"]
        pillar = ZONE1_RESOURCES["pillars"]

        pillarWall = [
            pillar["steel_top"][0], pillar["steel_mid"][0],
            pillar["steel_bot"][0]
        ]
        platWall = [
            wall["plat_top"][0], wall["plat_mid"][0], wall["plat_bot"][0]
        ]
        blockWall = [
            wall["block_left"][0], wall["block_mid"][0], wall["block_right"][0]
        ]

        boundaries = \
            [
                Wall(739, 0, 5, "h", wall["boundary_top"], self.screen),
                Wall(99, 0, 5, "h", wall["boundary_top"], self.screen),
                Wall(0, 64, 7, "v", wall["boundary_left"], self.screen),
                Wall(1102, 60, 7, "v", wall["boundary_right"], self.screen),

                Wall(587, 367, 2, "v", wall["boundary_left"], self.screen),
                Wall(507, 367, 2, "v", wall["boundary_right"], self.screen),
            ]

        obstacles = \
            [
                Wall(363, 48, 6, "v", pillarWall, self.screen),
                Wall(738, 48, 6, "v", pillarWall, self.screen),

                Wall(167, 182, 2, "h", blockWall, self.screen),
                Wall(735, 182, 2, "h", blockWall, self.screen),

                Wall(543, 198, 1, "h", wall["block_small"], self.screen),
                Wall(575, 363, 1, "v", wall["corner_bot_left"], self.screen),
                Wall(507, 363, 1, "h", wall["corner_bot_right"], self.screen),

                Wall(375, 423, 1, "v", platWall, self.screen),
                Wall(703, 423, 1, "v", platWall, self.screen),
            ]

        return boundaries + obstacles