Пример #1
0
    def __init__(self, player):
        """ Definition for Level 07 """

        # Call the parent constructor
        Level.__init__(self, player)

        self.background = pygame.image.load(
            "spritesheet/day_background.png").convert_alpha()
        self.background.set_colorkey(constants.WHITE)
        self.level_limit = -1586

        # Array with type of platform, and x, y location of the platform.
        # for level 07
        level07 = [
            [platforms_sand_dirt.sand_dirt_wall, -140, 0],
            [platforms_sand_dirt.sand_dirt_medium_long_land, 0, 530],
            [platforms_sand_dirt.sand_dirt_tall_small, 560, 390],
            [platforms_sand_dirt.sand_dirt_tall_medium, 630, 320],
            [platforms_sand_dirt.sand_dirt_tall_long, 700, 250],
            [platforms_sand_dirt.sand_dirt_half, 560, 120],
            [platforms_sand_dirt.sand_dirt_wall, 920, -250],
            [platforms_sand_dirt.sand_dirt_basic_medium, 280, 120],
            [platforms_sand_dirt.sand_dirt_basic_medium, 0, 120],
            [platforms_sand_dirt.sand_dirt_tall_large_medium, 1190, 390],
            [platforms_sand_dirt.sand_dirt_medium_long_land, 1330, 460],
            [platforms_sand_dirt.sand_dirt_tall_large_medium, 1680, 390],
            [platforms_sand_dirt.sand_dirt_long_soft_up_down, 1200, 190],
            [platforms_sand_dirt.sand_dirt_medium_long_land, 2240, 460],
            [platforms_sand_dirt.sand_dirt_big_wall, 2660, 0],
            [platforms_sand_dirt.sand_dirt_wall, 2520, 0]
        ]

        water_level07 = [[platforms_bad_sprite.medium_long_water, 350, 531],
                         [platforms_bad_sprite.medium_long_water, 770, 531],
                         [platforms_bad_sprite.medium_long_water, 980, 531],
                         [platforms_bad_sprite.medium_long_water, 1820, 531],
                         [platforms_bad_sprite.medium_long_water, 2030, 531]]

        portal = [[platforms_item.portal_snow, 2450, 389]]

        # hiragana point
        hiragana_ha = [[platforms_hiragana.hiragana_ha, 420, 210]]
        hiragana_hi = [[platforms_hiragana.hiragana_hi, 820, 10]]
        hiragana_hu = [[platforms_hiragana.hiragana_hu, 180, 130]]
        hiragana_he = [[platforms_hiragana.hiragana_he, 0, 20]]
        hiragana_ho = [[platforms_hiragana.hiragana_ho, 1520, 380]]

        # Enemys
        skull_zombie = [[platforms_enemy.old_skull, 570, 340],
                        [platforms_enemy.old_skull, 650, 270],
                        [platforms_enemy.old_skull, 710, 199]]

        # Special Enemys
        special_enemy_ha = [[platforms_special_enemy.orange_slime_ha, 555, 20]]
        special_enemy_hi = [[platforms_special_enemy.orange_slime_hi, 280, 20]]
        special_enemy_hu = [[platforms_special_enemy.orange_slime_hu, 60, 20]]
        special_enemy_he = [[
            platforms_special_enemy.orange_slime_he, 1200, 290
        ]]
        special_enemy_ho = [[
            platforms_special_enemy.orange_slime_ho, 1680, 290
        ]]

        for platform in level07:
            block = platforms_sand_dirt.Platform_dirt_sand(platform[0])
            block.rect.x = platform[1]
            block.rect.y = platform[2]
            block.player = self.player
            self.platform_list.add(block)

        for platform in water_level07:
            water_suicide_lv7 = platforms_bad_sprite.Platform_dirt(platform[0])
            water_suicide_lv7.rect.x = platform[1]
            water_suicide_lv7.rect.y = platform[2]
            water_suicide_lv7.player = self.player
            self.death_place_list_lv7.add(water_suicide_lv7)

        for platform in portal:
            gate = platforms_item.Platform_snow(platform[0])
            gate.rect.x = platform[1]
            gate.rect.y = platform[2]
            gate.player = self.player
            self.portal_list.add(gate)

        # Enemys
        for platform in skull_zombie:
            eaten_lv7 = platforms_enemy.Platform_enemy(platform[0])
            eaten_lv7.rect.x = platform[1]
            eaten_lv7.rect.y = platform[2]
            eaten_lv7.player = self.player
            self.enemy_list_lv7.add(eaten_lv7)

        # Special enemys
        # Hiragana Ha
        for platform in special_enemy_ha:
            special_eaten_HA = platforms_special_enemy.Platform_special_enemy(
                platform[0])
            special_eaten_HA.rect.x = platform[1]
            special_eaten_HA.rect.y = platform[2]
            special_eaten_HA.player = self.player
            self.special_enemy_list_HA.add(special_eaten_HA)

        # Hiragana Hi
        for platform in special_enemy_hi:
            special_eaten_HI = platforms_special_enemy.Platform_special_enemy(
                platform[0])
            special_eaten_HI.rect.x = platform[1]
            special_eaten_HI.rect.y = platform[2]
            special_eaten_HI.player = self.player
            self.special_enemy_list_HI.add(special_eaten_HI)

        # Hiragana Hu
        for platform in special_enemy_hu:
            special_eaten_HU = platforms_special_enemy.Platform_special_enemy(
                platform[0])
            special_eaten_HU.rect.x = platform[1]
            special_eaten_HU.rect.y = platform[2]
            special_eaten_HU.player = self.player
            self.special_enemy_list_HU.add(special_eaten_HU)

        # Hiragana He
        for platform in special_enemy_he:
            special_eaten_HE = platforms_special_enemy.Platform_special_enemy(
                platform[0])
            special_eaten_HE.rect.x = platform[1]
            special_eaten_HE.rect.y = platform[2]
            special_eaten_HE.player = self.player
            self.special_enemy_list_HE.add(special_eaten_HE)

        # Hiragana Ho
        for platform in special_enemy_ho:
            special_eaten_HO = platforms_special_enemy.Platform_special_enemy(
                platform[0])
            special_eaten_HO.rect.x = platform[1]
            special_eaten_HO.rect.y = platform[2]
            special_eaten_HO.player = self.player
            self.special_enemy_list_HO.add(special_eaten_HO)

        # Point
        # Hiragana Ha
        for platform in hiragana_ha:
            true_point_lv7 = platforms_hiragana.Platform_hiragana_katakana(
                platform[0])
            true_point_lv7.rect.x = platform[1]
            true_point_lv7.rect.y = platform[2]
            true_point_lv7.player = self.player
            self.hiragana_HA.add(true_point_lv7)

        # Hiragana Hi
        for platform in hiragana_hi:
            true_point_lv7 = platforms_hiragana.Platform_hiragana_katakana(
                platform[0])
            true_point_lv7.rect.x = platform[1]
            true_point_lv7.rect.y = platform[2]
            true_point_lv7.player = self.player
            self.hiragana_HI.add(true_point_lv7)

        # Hiragana Hu
        for platform in hiragana_hu:
            true_point_lv7 = platforms_hiragana.Platform_hiragana_katakana(
                platform[0])
            true_point_lv7.rect.x = platform[1]
            true_point_lv7.rect.y = platform[2]
            true_point_lv7.player = self.player
            self.hiragana_HU.add(true_point_lv7)

        # Hiragana He
        for platform in hiragana_he:
            true_point_lv7 = platforms_hiragana.Platform_hiragana_katakana(
                platform[0])
            true_point_lv7.rect.x = platform[1]
            true_point_lv7.rect.y = platform[2]
            true_point_lv7.player = self.player
            self.hiragana_HE.add(true_point_lv7)

        # Hiragana Ho
        for platform in hiragana_ho:
            true_point_lv7 = platforms_hiragana.Platform_hiragana_katakana(
                platform[0])
            true_point_lv7.rect.x = platform[1]
            true_point_lv7.rect.y = platform[2]
            true_point_lv7.player = self.player
            self.hiragana_HO.add(true_point_lv7)

        # Moving Platforms
        block = platforms_sand_dirt.MovingPlatform_dirt_sand(
            platforms_sand_dirt.sand_dirt_half)
        block.rect.x = 820
        block.rect.y = 483
        block.boundary_top = 70
        block.boundary_bottom = 600
        block.change_y = 3
        block.player = self.player
        block.level = self
        self.platform_list.add(block)

        block = platforms_sand_dirt.MovingPlatform_dirt_sand(
            platforms_sand_dirt.sand_dirt_half)
        block.rect.x = 820
        block.rect.y = 483
        block.boundary_left = 820
        block.boundary_right = 1100
        block.change_x = 4
        block.player = self.player
        block.level = self
        self.platform_list.add(block)

        # Moving Enemys
        eaten_lv7 = platforms_enemy.MovingEnemy(platforms_enemy.dark_bat)
        eaten_lv7.rect.x = 820
        eaten_lv7.rect.y = 120
        eaten_lv7.boundary_top = 70
        eaten_lv7.boundary_bottom = 500
        eaten_lv7.change_y = 4
        eaten_lv7.player = self.player
        eaten_lv7.level = self
        self.enemy_list_lv7.add(eaten_lv7)

        eaten_lv7 = platforms_enemy.MovingEnemy(platforms_enemy.old_skull)
        eaten_lv7.rect.x = 1380
        eaten_lv7.rect.y = 400
        eaten_lv7.boundary_left = 1380
        eaten_lv7.boundary_right = 1700
        eaten_lv7.change_x = 6
        eaten_lv7.player = self.player
        eaten_lv7.level = self
        self.enemy_list_lv7.add(eaten_lv7)

        eaten_lv7 = platforms_enemy.MovingEnemy(platforms_enemy.old_skull)
        eaten_lv7.rect.x = 1380
        eaten_lv7.rect.y = 400
        eaten_lv7.boundary_left = 1380
        eaten_lv7.boundary_right = 1700
        eaten_lv7.change_x = 5
        eaten_lv7.player = self.player
        eaten_lv7.level = self
        self.enemy_list_lv7.add(eaten_lv7)

        eaten_lv7 = platforms_enemy.MovingEnemy(platforms_enemy.old_skull)
        eaten_lv7.rect.x = 1380
        eaten_lv7.rect.y = 400
        eaten_lv7.boundary_left = 1380
        eaten_lv7.boundary_right = 1700
        eaten_lv7.change_x = 4
        eaten_lv7.player = self.player
        eaten_lv7.level = self
        self.enemy_list_lv7.add(eaten_lv7)
Пример #2
0
    def __init__(self, player):
        """ Definition for Level 11"""

        # Call the parent constructor
        Level.__init__(self, player)

        self.background = pygame.image.load(
            "spritesheet/lava_background.png").convert_alpha()
        self.background.set_colorkey(constants.WHITE)
        self.level_limit = -1656

        # Array with type of platform, and x, y location of the platform.
        # for level 11
        level11 = [
            [platforms_lava_rock.lava_rock_wall, -140, 0],
            [platforms_lava_rock.lava_rock_medium_large_land, 0, 530],
            [platforms_lava_rock.lava_rock_medium_large_land, 280, 530],
            [platforms_lava_rock.lava_rock_small_tall, 770, 390],
            [platforms_lava_rock.lava_rock_medium_tall, 840, 320],
            [platforms_lava_rock.lava_rock_long_tall, 910, 250],
            [platforms_lava_rock.lava_rock_basic, 1050, 98],
            [platforms_lava_rock.lava_rock_basic_medium, 560, 105],
            [platforms_lava_rock.lava_rock_short_small_land, 0, 98],
            [platforms_lava_rock.lava_rock_medium_large_land, 1540, 410],
            [platforms_lava_rock.lava_rock_long_tall, 2100, 110],
            [platforms_lava_rock.lava_rock_medium_large_land, 2380, 410],
            [platforms_lava_rock.lava_rock_big_wall, 2590, 0],
            [platforms_lava_rock.lava_rock_wall, 2870, 0]
        ]

        lava_water_level11 = [
            [platforms_bad_sprite.lava_water_long, 560, 531],
            [platforms_bad_sprite.lava_water_long, 980, 531],
            [platforms_bad_sprite.lava_water_long, 1190, 531],
            [platforms_bad_sprite.lava_water, 1400, 531],
            [platforms_bad_sprite.lava_water, 1470, 531],
            [platforms_bad_sprite.lava_water_long, 1820, 531],
            [platforms_bad_sprite.lava_water, 2030, 531],
            [platforms_bad_sprite.lava_water_long, 2170, 531]
        ]

        portal = [[platforms_item.portal_snow, 2520, 340]]

        love_health = [[platforms_item.restore_health, 70, 20]]

        # Hiragana Point
        hiragana_wa = [[platforms_hiragana.hiragana_wa, 1050, 20]]
        hiragana_wo = [[platforms_hiragana.hiragana_wo, 350, 100]]
        hiragana_n = [[platforms_hiragana.hiragana_n, 0, 20]]

        # enemys
        slime_lava = [
            [platforms_enemy.orange_slime, 770, 357],
            [platforms_enemy.orange_slime, 805, 357],
            [platforms_enemy.orange_slime, 840, 286],
            [platforms_enemy.orange_slime, 875, 286],
            [platforms_enemy.orange_slime, 910, 216],
            [platforms_enemy.orange_slime, 945, 216]
        ]

        for platform in level11:
            block = platforms_lava_rock.Platform_lava_rock(platform[0])
            block.rect.x = platform[1]
            block.rect.y = platform[2]
            block.player = self.player
            self.platform_list.add(block)

        for platform in lava_water_level11:
            lava_water_suicide_lv11 = platforms_lava_rock.Platform_lava_rock(
                platform[0])
            lava_water_suicide_lv11.rect.x = platform[1]
            lava_water_suicide_lv11.rect.y = platform[2]
            lava_water_suicide_lv11.player = self.player
            self.death_place_list_lv11.add(lava_water_suicide_lv11)

        for platform in portal:
            gate = platforms_item.Platform_snow(platform[0])
            gate.rect.x = platform[1]
            gate.rect.y = platform[2]
            gate.player = self.player
            self.portal_list.add(gate)

        for platform in love_health:
            love_restore = platforms_item.Platform_hiragana_katakana(
                platform[0])
            love_restore.rect.x = platform[1]
            love_restore.rect.y = platform[2]
            love_restore.player = self.player
            self.love_restore_health.add(love_restore)

        # Enemys
        for platform in slime_lava:
            eaten_lv11 = platforms_enemy.Platform_enemy(platform[0])
            eaten_lv11.rect.x = platform[1]
            eaten_lv11.rect.y = platform[2]
            eaten_lv11.player = self.player
            self.enemy_list_lv11.add(eaten_lv11)

        # Point
        # Hiragana Wa
        for platform in hiragana_wa:
            true_point_lv11 = platforms_hiragana.Platform_hiragana_katakana(
                platform[0])
            true_point_lv11.rect.x = platform[1]
            true_point_lv11.rect.y = platform[2]
            true_point_lv11.player = self.player
            self.hiragana_WA.add(true_point_lv11)

        # Hiragana Wo
        for platform in hiragana_wo:
            true_point_lv11 = platforms_hiragana.Platform_hiragana_katakana(
                platform[0])
            true_point_lv11.rect.x = platform[1]
            true_point_lv11.rect.y = platform[2]
            true_point_lv11.player = self.player
            self.hiragana_WO.add(true_point_lv11)

        # Hiragana N
        for platform in hiragana_n:
            true_point_lv11 = platforms_hiragana.Platform_hiragana_katakana(
                platform[0])
            true_point_lv11.rect.x = platform[1]
            true_point_lv11.rect.y = platform[2]
            true_point_lv11.player = self.player
            self.hiragana_N.add(true_point_lv11)

        # add moving sprites
        block = platforms_lava_rock.MovingPlatform_lava_rock(
            platforms_lava_rock.lava_rock_half)
        block.rect.x = 1960
        block.rect.y = 110
        block.boundary_top = 100
        block.boundary_bottom = 600
        block.change_y = 3
        block.player = self.player
        block.level = self
        self.platform_list.add(block)

        # add moving enemys
        eaten_lv11 = platforms_enemy.MovingEnemy(platforms_enemy.old_skull)
        eaten_lv11.rect.x = 1540
        eaten_lv11.rect.y = 350
        eaten_lv11.boundary_left = 1540
        eaten_lv11.boundary_right = 1780
        eaten_lv11.change_x = 5
        eaten_lv11.player = self.player
        eaten_lv11.level = self
        self.enemy_list_lv11.add(eaten_lv11)

        eaten_lv11 = platforms_enemy.MovingEnemy(platforms_enemy.old_skull)
        eaten_lv11.rect.x = 1540
        eaten_lv11.rect.y = 350
        eaten_lv11.boundary_left = 1540
        eaten_lv11.boundary_right = 1780
        eaten_lv11.change_x = 3
        eaten_lv11.player = self.player
        eaten_lv11.level = self
        self.enemy_list_lv11.add(eaten_lv11)

        eaten_lv11 = platforms_enemy.MovingEnemy(platforms_enemy.old_skull)
        eaten_lv11.rect.x = 1540
        eaten_lv11.rect.y = 350
        eaten_lv11.boundary_left = 1540
        eaten_lv11.boundary_right = 1780
        eaten_lv11.change_x = 2
        eaten_lv11.player = self.player
        eaten_lv11.level = self
        self.enemy_list_lv11.add(eaten_lv11)

        eaten_lv11 = platforms_enemy.MovingEnemy(platforms_enemy.dark_bat)
        eaten_lv11.rect.x = 1960
        eaten_lv11.rect.y = 110
        eaten_lv11.boundary_top = 100
        eaten_lv11.boundary_bottom = 450
        eaten_lv11.change_y = 3
        eaten_lv11.player = self.player
        eaten_lv11.level = self
        self.enemy_list_lv11.add(eaten_lv11)

        # add moving special enemys
        # Hiragana Wa
        special_eaten_WA = platforms_special_enemy.MovingEnemySpecial(
            platforms_special_enemy.slime_lava_wa)
        special_eaten_WA.rect.x = 560
        special_eaten_WA.rect.y = 10
        special_eaten_WA.boundary_left = 560
        special_eaten_WA.boundary_right = 630
        special_eaten_WA.change_x = 3
        special_eaten_WA.player = self.player
        special_eaten_WA.level = self
        self.special_enemy_list_WA.add(special_eaten_WA)

        # Hiragana Wo
        special_eaten_WO = platforms_special_enemy.MovingEnemySpecial(
            platforms_special_enemy.slime_lava_wo)
        special_eaten_WO.rect.x = 50
        special_eaten_WO.rect.y = 10
        special_eaten_WO.boundary_left = 50
        special_eaten_WO.boundary_right = 150
        special_eaten_WO.change_x = 3
        special_eaten_WO.player = self.player
        special_eaten_WO.level = self
        self.special_enemy_list_WO.add(special_eaten_WO)

        # Hiragana N
        special_eaten_N = platforms_special_enemy.MovingEnemySpecial(
            platforms_special_enemy.slime_lava_n)
        special_eaten_N.rect.x = 1540
        special_eaten_N.rect.y = 320
        special_eaten_N.boundary_left = 1540
        special_eaten_N.boundary_right = 1780
        special_eaten_N.change_x = 4
        special_eaten_N.player = self.player
        special_eaten_N.level = self
        self.special_enemy_list_N.add(special_eaten_N)
Пример #3
0
    def __init__(self, player):
        """ Create Level 1 """

        # Call the parent constructor
        Level.__init__(self, player)

        self.background = pygame.image.load(
            "spritesheet/day_background.png").convert_alpha()
        self.background.set_colorkey(constants.WHITE)
        self.level_limit = -1166

        # Array with type of platform, and x, y location of the platform.
        # for level 01
        level01 = [[platforms_dirt.dirt_wall, -140, 0],
                   [platforms_dirt.dirt_medium_long_land, 0, 460],
                   [platforms_dirt.dirt_medium_long_land, 700, 460],
                   [platforms_dirt.dirt_medium_short_land, 770, 196],
                   [platforms_dirt.dirt_short_land, 1330, 460],
                   [platforms_dirt.dirt_grass_rounded, 1146, 319],
                   [platforms_dirt.dirt_medium_short_land, 1218, 125],
                   [platforms_dirt.dirt_medium_long_land, 1680, 460],
                   [platforms_dirt.dirt_big_wall, 2100, 0]]

        water_level01 = [[platforms_bad_sprite.medium_long_water, 490, 531],
                         [platforms_bad_sprite.medium_short_water, 1190, 531],
                         [platforms_bad_sprite.medium_long_water, 1470, 531]]

        portal = [[platforms_item.portal_snow, 2030, 380]]

        love_health = [[platforms_item.restore_health, 1380, 400]]

        katakana_a = [[platforms_katakana.katakana_a, 400, 200]]
        katakana_i = [[platforms_katakana.katakana_i, 600, 48]]
        katakana_u = [[platforms_katakana.katakana_u, 200, 200]]

        toxic_frog = [[platforms_enemy.fat_frog, 300, 405],
                      [platforms_enemy.fat_frog, 400, 405],
                      [platforms_enemy.fat_frog, 1680, 405]]

        # for special enemy
        special_enemy_a = [[platforms_special_enemy.big_ogre_a, 700, 360]]
        special_enemy_i = [[platforms_special_enemy.big_ogre_i, 1250, 20]]

        for platform in level01:
            block = platforms_dirt.Platform_dirt(platform[0])
            block.rect.x = platform[1]
            block.rect.y = platform[2]
            block.player = self.player
            self.platform_list.add(block)

        for platform in water_level01:
            water_suicide_lv1 = platforms_dirt.Platform_dirt(platform[0])
            water_suicide_lv1.rect.x = platform[1]
            water_suicide_lv1.rect.y = platform[2]
            water_suicide_lv1.player = self.player
            self.death_place_list_lv1.add(water_suicide_lv1)

        for platform in love_health:
            love_restore = platforms_item.Platform_hiragana_katakana(
                platform[0])
            love_restore.rect.x = platform[1]
            love_restore.rect.y = platform[2]
            love_restore.player = self.player
            self.love_restore_health.add(love_restore)

        for platform in portal:
            gate = platforms_item.Platform_snow(platform[0])
            gate.rect.x = platform[1]
            gate.rect.y = platform[2]
            gate.player = self.player
            self.portal_list.add(gate)

        # True Point increease scores player
        # katakana A Point
        for platform in katakana_a:
            true_point_lv1 = platforms_katakana.Platform_hiragana_katakana(
                platform[0])
            true_point_lv1.rect.x = platform[1]
            true_point_lv1.rect.y = platform[2]
            true_point_lv1.player = self.player
            self.katakana_A.add(true_point_lv1)

        # katakana I Point
        for platform in katakana_i:
            true_point_lv1 = platforms_katakana.Platform_hiragana_katakana(
                platform[0])
            true_point_lv1.rect.x = platform[1]
            true_point_lv1.rect.y = platform[2]
            true_point_lv1.player = self.player
            self.katakana_I.add(true_point_lv1)

        # False point decrease health player
        # katakana U Point
        for platform in katakana_u:
            false_point_lv1 = platforms_katakana.Platform_hiragana_katakana(
                platform[0])
            false_point_lv1.rect.x = platform[1]
            false_point_lv1.rect.y = platform[2]
            false_point_lv1.player = self.player
            self.katakana_U.add(false_point_lv1)

        for platform in toxic_frog:
            eaten_lv1 = platforms_enemy.Platform_enemy(platform[0])
            eaten_lv1.rect.x = platform[1]
            eaten_lv1.rect.y = platform[2]
            eaten_lv1.player = self.player
            self.enemy_list_lv1.add(eaten_lv1)

        # for special enemy/immune enemys
        for platform in special_enemy_a:
            special_eaten_A = platforms_special_enemy.Platform_special_enemy(
                platform[0])
            special_eaten_A.rect.x = platform[1]
            special_eaten_A.rect.y = platform[2]
            special_eaten_A.player = self.player
            self.special_enemy_list_A.add(special_eaten_A)

        for platform in special_enemy_i:
            special_eaten_I = platforms_special_enemy.Platform_special_enemy(
                platform[0])
            special_eaten_I.rect.x = platform[1]
            special_eaten_I.rect.y = platform[2]
            special_eaten_I.player = self.player
            self.special_enemy_list_I.add(special_eaten_I)

        # Moving Enemy
        eaten_lv1 = platforms_enemy.MovingEnemy(platforms_enemy.fat_frog)
        eaten_lv1.rect.x = 780
        eaten_lv1.rect.y = 405
        eaten_lv1.boundary_left = 700
        eaten_lv1.boundary_right = 1100
        eaten_lv1.change_x = 3
        eaten_lv1.player = self.player
        eaten_lv1.level = self
        self.enemy_list_lv1.add(eaten_lv1)

        eaten_lv1 = platforms_enemy.MovingEnemy(platforms_enemy.fat_frog)
        eaten_lv1.rect.x = 790
        eaten_lv1.rect.y = 140
        eaten_lv1.boundary_left = 790
        eaten_lv1.boundary_right = 1000
        eaten_lv1.change_x = 6
        eaten_lv1.player = self.player
        eaten_lv1.level = self
        self.enemy_list_lv1.add(eaten_lv1)

        eaten_lv1 = platforms_enemy.MovingEnemy(platforms_enemy.fat_frog)
        eaten_lv1.rect.x = 1300
        eaten_lv1.rect.y = 70
        eaten_lv1.boundary_left = 1300
        eaten_lv1.boundary_right = 1450
        eaten_lv1.change_x = 3
        eaten_lv1.player = self.player
        eaten_lv1.level = self
        self.enemy_list_lv1.add(eaten_lv1)
Пример #4
0
    def __init__(self, player):
        """ Definition for Level 10"""

        # Call the parent constructor
        Level.__init__(self, player)

        self.background = pygame.image.load(
            "spritesheet/lava_background.png").convert_alpha()
        self.background.set_colorkey(constants.WHITE)
        self.level_limit = -1656

        # Array with type of platform, and x, y location of the platform.
        # for level 10
        level10 = [
            [platforms_lava_rock.lava_rock_wall, -140, 0],
            [platforms_lava_rock.lava_rock_medium_large_land, 0, 530],
            [platforms_lava_rock.lava_rock_medium_large_land, 280, 530],
            [platforms_lava_rock.lava_rock_small_tall, 770, 390],
            [platforms_lava_rock.lava_rock_medium_tall, 840, 320],
            [platforms_lava_rock.lava_rock_long_tall, 910, 250],
            [platforms_lava_rock.lava_rock_basic, 1050, 98],
            [platforms_lava_rock.lava_rock_basic_medium, 560, 105],
            [platforms_lava_rock.lava_rock_short_small_land, 0, 98],
            [platforms_lava_rock.lava_rock_medium_large_land, 1540, 410],
            [platforms_lava_rock.lava_rock_long_tall, 2100, 110],
            [platforms_lava_rock.lava_rock_medium_large_land, 2380, 410],
            [platforms_lava_rock.lava_rock_big_wall, 2590, 0],
            [platforms_lava_rock.lava_rock_wall, 2870, 0]
        ]

        lava_water_level10 = [
            [platforms_bad_sprite.lava_water_long, 560, 531],
            [platforms_bad_sprite.lava_water_long, 980, 531],
            [platforms_bad_sprite.lava_water_long, 1190, 531],
            [platforms_bad_sprite.lava_water, 1400, 531],
            [platforms_bad_sprite.lava_water, 1470, 531],
            [platforms_bad_sprite.lava_water_long, 1820, 531],
            [platforms_bad_sprite.lava_water, 2030, 531],
            [platforms_bad_sprite.lava_water_long, 2170, 531]
        ]

        portal = [[platforms_item.portal_snow, 2520, 340]]

        love_health = [[platforms_item.restore_health, 70, 20]]

        # katakana Point
        katakana_ra = [[platforms_katakana.katakana_ra, 1050, 20]]
        katakana_ri = [[platforms_katakana.katakana_ri, 350, 100]]
        katakana_ru = [[platforms_katakana.katakana_ru, 0, 20]]
        katakana_re = [[platforms_katakana.katakana_re, 1650, 100]]
        katakana_ro = [[platforms_katakana.katakana_ro, 1800, 100]]

        # enemys
        slime_lava = [[platforms_enemy.orange_slime, 770, 357],
                      [platforms_enemy.orange_slime, 805, 357],
                      [platforms_enemy.orange_slime, 840, 286],
                      [platforms_enemy.orange_slime, 875, 286],
                      [platforms_enemy.orange_slime, 910, 216],
                      [platforms_enemy.orange_slime, 945, 216]]

        # special enemys
        special_enemy_ro = [[platforms_special_enemy.slime_lava_ro, 2100, 10]]

        for platform in level10:
            block = platforms_lava_rock.Platform_lava_rock(platform[0])
            block.rect.x = platform[1]
            block.rect.y = platform[2]
            block.player = self.player
            self.platform_list.add(block)

        for platform in lava_water_level10:
            lava_water_suicide_lv10 = platforms_lava_rock.Platform_lava_rock(
                platform[0])
            lava_water_suicide_lv10.rect.x = platform[1]
            lava_water_suicide_lv10.rect.y = platform[2]
            lava_water_suicide_lv10.player = self.player
            self.death_place_list_lv10.add(lava_water_suicide_lv10)

        for platform in portal:
            gate = platforms_item.Platform_snow(platform[0])
            gate.rect.x = platform[1]
            gate.rect.y = platform[2]
            gate.player = self.player
            self.portal_list.add(gate)

        for platform in love_health:
            love_restore = platforms_item.Platform_hiragana_katakana(
                platform[0])
            love_restore.rect.x = platform[1]
            love_restore.rect.y = platform[2]
            love_restore.player = self.player
            self.love_restore_health.add(love_restore)

        # Enemys
        for platform in slime_lava:
            eaten_lv10 = platforms_enemy.Platform_enemy(platform[0])
            eaten_lv10.rect.x = platform[1]
            eaten_lv10.rect.y = platform[2]
            eaten_lv10.player = self.player
            self.enemy_list_lv10.add(eaten_lv10)

        # Special enemys
        # katakana Ro
        for platform in special_enemy_ro:
            special_eaten_RO = platforms_special_enemy.Platform_special_enemy(
                platform[0])
            special_eaten_RO.rect.x = platform[1]
            special_eaten_RO.rect.y = platform[2]
            special_eaten_RO.player = self.player
            self.special_enemy_list_RO.add(special_eaten_RO)

        # Point
        # katakana Ra
        for platform in katakana_ra:
            true_point_lv10 = platforms_katakana.Platform_hiragana_katakana(
                platform[0])
            true_point_lv10.rect.x = platform[1]
            true_point_lv10.rect.y = platform[2]
            true_point_lv10.player = self.player
            self.katakana_RA.add(true_point_lv10)

        # katakana RI
        for platform in katakana_ri:
            true_point_lv10 = platforms_katakana.Platform_hiragana_katakana(
                platform[0])
            true_point_lv10.rect.x = platform[1]
            true_point_lv10.rect.y = platform[2]
            true_point_lv10.player = self.player
            self.katakana_RI.add(true_point_lv10)

        # katakana Ru
        for platform in katakana_ru:
            true_point_lv10 = platforms_katakana.Platform_hiragana_katakana(
                platform[0])
            true_point_lv10.rect.x = platform[1]
            true_point_lv10.rect.y = platform[2]
            true_point_lv10.player = self.player
            self.katakana_RU.add(true_point_lv10)

        # katakana Re
        for platform in katakana_re:
            true_point_lv10 = platforms_katakana.Platform_hiragana_katakana(
                platform[0])
            true_point_lv10.rect.x = platform[1]
            true_point_lv10.rect.y = platform[2]
            true_point_lv10.player = self.player
            self.katakana_RE.add(true_point_lv10)

        # katakana Ro
        for platform in katakana_ro:
            true_point_lv10 = platforms_katakana.Platform_hiragana_katakana(
                platform[0])
            true_point_lv10.rect.x = platform[1]
            true_point_lv10.rect.y = platform[2]
            true_point_lv10.player = self.player
            self.katakana_RO.add(true_point_lv10)

        # add moving sprites
        block = platforms_lava_rock.MovingPlatform_lava_rock(
            platforms_lava_rock.lava_rock_half)
        block.rect.x = 1960
        block.rect.y = 110
        block.boundary_top = 100
        block.boundary_bottom = 600
        block.change_y = 3
        block.player = self.player
        block.level = self
        self.platform_list.add(block)

        # add moving enemys
        eaten_lv10 = platforms_enemy.MovingEnemy(platforms_enemy.old_skull)
        eaten_lv10.rect.x = 1540
        eaten_lv10.rect.y = 350
        eaten_lv10.boundary_left = 1540
        eaten_lv10.boundary_right = 1780
        eaten_lv10.change_x = 5
        eaten_lv10.player = self.player
        eaten_lv10.level = self
        self.enemy_list_lv10.add(eaten_lv10)

        eaten_lv10 = platforms_enemy.MovingEnemy(platforms_enemy.old_skull)
        eaten_lv10.rect.x = 1540
        eaten_lv10.rect.y = 350
        eaten_lv10.boundary_left = 1540
        eaten_lv10.boundary_right = 1780
        eaten_lv10.change_x = 3
        eaten_lv10.player = self.player
        eaten_lv10.level = self
        self.enemy_list_lv10.add(eaten_lv10)

        eaten_lv10 = platforms_enemy.MovingEnemy(platforms_enemy.old_skull)
        eaten_lv10.rect.x = 1540
        eaten_lv10.rect.y = 350
        eaten_lv10.boundary_left = 1540
        eaten_lv10.boundary_right = 1780
        eaten_lv10.change_x = 2
        eaten_lv10.player = self.player
        eaten_lv10.level = self
        self.enemy_list_lv10.add(eaten_lv10)

        eaten_lv10 = platforms_enemy.MovingEnemy(platforms_enemy.dark_bat)
        eaten_lv10.rect.x = 1960
        eaten_lv10.rect.y = 110
        eaten_lv10.boundary_top = 100
        eaten_lv10.boundary_bottom = 450
        eaten_lv10.change_y = 3
        eaten_lv10.player = self.player
        eaten_lv10.level = self
        self.enemy_list_lv10.add(eaten_lv10)

        # add moving special enemys
        # katakana Ra
        special_eaten_RA = platforms_special_enemy.MovingEnemySpecial(
            platforms_special_enemy.slime_lava_ra)
        special_eaten_RA.rect.x = 560
        special_eaten_RA.rect.y = 10
        special_eaten_RA.boundary_left = 560
        special_eaten_RA.boundary_right = 630
        special_eaten_RA.change_x = 3
        special_eaten_RA.player = self.player
        special_eaten_RA.level = self
        self.special_enemy_list_RA.add(special_eaten_RA)

        # katakana Ri
        special_eaten_RI = platforms_special_enemy.MovingEnemySpecial(
            platforms_special_enemy.slime_lava_ri)
        special_eaten_RI.rect.x = 50
        special_eaten_RI.rect.y = 10
        special_eaten_RI.boundary_left = 50
        special_eaten_RI.boundary_right = 150
        special_eaten_RI.change_x = 3
        special_eaten_RI.player = self.player
        special_eaten_RI.level = self
        self.special_enemy_list_RI.add(special_eaten_RI)

        # katakana Ru
        special_eaten_RU = platforms_special_enemy.MovingEnemySpecial(
            platforms_special_enemy.slime_lava_ru)
        special_eaten_RU.rect.x = 1540
        special_eaten_RU.rect.y = 320
        special_eaten_RU.boundary_left = 1540
        special_eaten_RU.boundary_right = 1780
        special_eaten_RU.change_x = 4
        special_eaten_RU.player = self.player
        special_eaten_RU.level = self
        self.special_enemy_list_RU.add(special_eaten_RU)

        # katakana Re
        special_eaten_RE = platforms_special_enemy.MovingEnemySpecial(
            platforms_special_enemy.slime_lava_re)
        special_eaten_RE.rect.x = 1960
        special_eaten_RE.rect.y = 110
        special_eaten_RE.boundary_top = 100
        special_eaten_RE.boundary_bottom = 450
        special_eaten_RE.change_y = 3
        special_eaten_RE.player = self.player
        special_eaten_RE.level = self
        self.special_enemy_list_RE.add(special_eaten_RE)
Пример #5
0
    def __init__(self, player):
        """ Definition for Level 03 """

        # Call the parent constructor
        Level.__init__(self, player)

        self.background = pygame.image.load(
            "spritesheet/night_background.png").convert_alpha()
        self.background.set_colorkey(constants.WHITE)
        self.level_limit = -1166

        # Array with type of platform, and x, y location of the platform.
        # for level 03
        level02 = [[platforms_dark_brick.brick_dark_wall, -140, 0],
                   [platforms_dark_brick.brick_medium_short_land, 0, 529],
                   [platforms_dark_brick.brick_medium_large_land, 0, 141],
                   [platforms_dark_brick.brick_dark_small_stairs1, 281, 459],
                   [platforms_dark_brick.brick_dark_small_stairs2, 351, 389],
                   [platforms_dark_brick.brick_dark_small_stairs3, 421, 319],
                   [platforms_dark_brick.brick_dark_grass_rounded, 281, 214],
                   [platforms_dark_brick.brick_small_short_land, 642, 102],
                   [platforms_dark_brick.brick_dark_grass_rounded, 713, 384],
                   [platforms_dark_brick.brick_medium_long_land, 840, 528],
                   [
                       platforms_dark_brick.brick_medium_large_long_land, 869,
                       272
                   ], [platforms_dark_brick.brick_half_short_land, 943, 131],
                   [platforms_dark_brick.brick_dark_small_stairs1, 1680, 480],
                   [platforms_dark_brick.brick_large_high_land, 1750, 410],
                   [platforms_dark_brick.brick_dark_big_wall, 2100, 0]]

        sharp_rock_level02 = [
            [platforms_bad_sprite.medium_sharp_rock, 490, 540],
            [platforms_bad_sprite.small_sharp_rock, 700, 540],
            [platforms_bad_sprite.medium_sharp_rock, 1260, 540],
            [platforms_bad_sprite.medium_sharp_rock, 1470, 540]
        ]

        portal = [[platforms_item.portal_snow, 2030, 335]]

        love_health = [[platforms_item.restore_health, 980, 80]]

        # enemys
        bad_bat = [[platforms_enemy.dark_bat, 280, 400],
                   [platforms_enemy.dark_bat, 350, 330],
                   [platforms_enemy.dark_bat, 420, 260],
                   [platforms_enemy.dark_bat, 280, 150],
                   [platforms_enemy.dark_bat, 1680, 400]]

        # special enemys
        special_enemy_ka = [[platforms_special_enemy.dark_rabbit_ka, 700, 2]]
        special_enemy_ki = [[platforms_special_enemy.dark_rabbit_ki, 710, 275]]
        special_enemy_ku = [[platforms_special_enemy.dark_rabbit_ku, 130, 30]]
        special_enemy_ke = [[
            platforms_special_enemy.dark_rabbit_ke, 1050, 170
        ]]
        special_enemy_ko = [[
            platforms_special_enemy.dark_rabbit_ko, 1750, 300
        ]]

        # katakana point
        katakana_ka = [[platforms_katakana.katakana_ka, 30, 30]]
        katakana_ki = [[platforms_katakana.katakana_ki, 500, 180]]
        katakana_ku = [[platforms_katakana.katakana_ku, 280, 50]]
        katakana_ke = [[platforms_katakana.katakana_ke, 800, 150]]
        katakana_ko = [[platforms_katakana.katakana_ko, 1200, 400]]

        for platform in level02:
            block = platforms_dark_brick.Platform_dark_brick(platform[0])
            block.rect.x = platform[1]
            block.rect.y = platform[2]
            block.player = self.player
            self.platform_list.add(block)

        for platform in sharp_rock_level02:
            sharp_rock_lv3 = platforms_dark_brick.Platform_dark_brick(
                platform[0])
            sharp_rock_lv3.rect.x = platform[1]
            sharp_rock_lv3.rect.y = platform[2]
            sharp_rock_lv3.player = self.player
            self.death_place_list_lv3.add(sharp_rock_lv3)

        for platform in portal:
            gate = platforms_item.Platform_snow(platform[0])
            gate.rect.x = platform[1]
            gate.rect.y = platform[2]
            gate.player = self.player
            self.portal_list.add(gate)

        for platform in love_health:
            love_restore = platforms_item.Platform_hiragana_katakana(
                platform[0])
            love_restore.rect.x = platform[1]
            love_restore.rect.y = platform[2]
            love_restore.player = self.player
            self.love_restore_health.add(love_restore)

        for platform in bad_bat:
            eaten_lv3 = platforms_enemy.Platform_enemy(platform[0])
            eaten_lv3.rect.x = platform[1]
            eaten_lv3.rect.y = platform[2]
            eaten_lv3.player = self.player
            self.enemy_list_lv3.add(eaten_lv3)

        # Special enemys
        # katakana Ka
        for platform in special_enemy_ka:
            special_eaten_KA = platforms_special_enemy.Platform_special_enemy(
                platform[0])
            special_eaten_KA.rect.x = platform[1]
            special_eaten_KA.rect.y = platform[2]
            special_eaten_KA.player = self.player
            self.special_enemy_list_KA.add(special_eaten_KA)

        # katakana Ki
        for platform in special_enemy_ki:
            special_eaten_KI = platforms_special_enemy.Platform_special_enemy(
                platform[0])
            special_eaten_KI.rect.x = platform[1]
            special_eaten_KI.rect.y = platform[2]
            special_eaten_KI.player = self.player
            self.special_enemy_list_KI.add(special_eaten_KI)

        # katakana Ku
        for platform in special_enemy_ku:
            special_eaten_KU = platforms_special_enemy.Platform_special_enemy(
                platform[0])
            special_eaten_KU.rect.x = platform[1]
            special_eaten_KU.rect.y = platform[2]
            special_eaten_KU.player = self.player
            self.special_enemy_list_KU.add(special_eaten_KU)

        # katakana Ke
        for platform in special_enemy_ke:
            special_eaten_KE = platforms_special_enemy.Platform_special_enemy(
                platform[0])
            special_eaten_KE.rect.x = platform[1]
            special_eaten_KE.rect.y = platform[2]
            special_eaten_KE.player = self.player
            self.special_enemy_list_KE.add(special_eaten_KE)

        # katakana Ko
        for platform in special_enemy_ko:
            special_eaten_KO = platforms_special_enemy.Platform_special_enemy(
                platform[0])
            special_eaten_KO.rect.x = platform[1]
            special_eaten_KO.rect.y = platform[2]
            special_eaten_KO.player = self.player
            self.special_enemy_list_KO.add(special_eaten_KO)

        # Point
        # katakana Ka
        for platform in katakana_ka:
            true_point_lv3 = platforms_katakana.Platform_hiragana_katakana(
                platform[0])
            true_point_lv3.rect.x = platform[1]
            true_point_lv3.rect.y = platform[2]
            true_point_lv3.player = self.player
            self.katakana_KA_lv3.add(true_point_lv3)

        # katakana Ki
        for platform in katakana_ki:
            true_point_lv3 = platforms_katakana.Platform_hiragana_katakana(
                platform[0])
            true_point_lv3.rect.x = platform[1]
            true_point_lv3.rect.y = platform[2]
            true_point_lv3.player = self.player
            self.katakana_KI_lv3.add(true_point_lv3)

        # katakana Ku
        for platform in katakana_ku:
            true_point_lv3 = platforms_katakana.Platform_hiragana_katakana(
                platform[0])
            true_point_lv3.rect.x = platform[1]
            true_point_lv3.rect.y = platform[2]
            true_point_lv3.player = self.player
            self.katakana_KU.add(true_point_lv3)

        # katakana Ke
        for platform in katakana_ke:
            true_point_lv3 = platforms_katakana.Platform_hiragana_katakana(
                platform[0])
            true_point_lv3.rect.x = platform[1]
            true_point_lv3.rect.y = platform[2]
            true_point_lv3.player = self.player
            self.katakana_KE.add(true_point_lv3)

        # katakana Ko
        for platform in katakana_ko:
            true_point_lv3 = platforms_katakana.Platform_hiragana_katakana(
                platform[0])
            true_point_lv3.rect.x = platform[1]
            true_point_lv3.rect.y = platform[2]
            true_point_lv3.player = self.player
            self.katakana_KO.add(true_point_lv3)

        # add moving sprites
        block = platforms_dark_brick.MovingPlatform_dark_brick(
            platforms_dark_brick.brick_half_small_land)
        block.rect.x = 1302
        block.rect.y = 483
        block.boundary_left = 1302
        block.boundary_right = 1600
        block.change_x = 3
        block.player = self.player
        block.level = self
        self.platform_list.add(block)

        # Moving Enemys
        eaten_lv3 = platforms_enemy.MovingEnemy(platforms_enemy.dark_bat)
        eaten_lv3.rect.x = 900
        eaten_lv3.rect.y = 200
        eaten_lv3.boundary_left = 900
        eaten_lv3.boundary_right = 1000
        eaten_lv3.change_x = 4
        eaten_lv3.player = self.player
        eaten_lv3.level = self
        self.enemy_list_lv3.add(eaten_lv3)

        eaten_lv3 = platforms_enemy.MovingEnemy(platforms_enemy.dark_bat)
        eaten_lv3.rect.x = 800
        eaten_lv3.rect.y = 450
        eaten_lv3.boundary_left = 800
        eaten_lv3.boundary_right = 1000
        eaten_lv3.change_x = 4
        eaten_lv3.player = self.player
        eaten_lv3.level = self
        self.enemy_list_lv3.add(eaten_lv3)
Пример #6
0
    def __init__(self, player):
        """ Create intro how to play """

        # Call the parent constructor
        Level.__init__(self, player)

        self.background = pygame.image.load(
            "spritesheet/intro_background.png").convert_alpha()
        self.background.set_colorkey(constants.WHITE)
        self.level_limit = 165

        intro = [[platforms_snow.snow_dirt_wall, -140, 0],
                 [platforms_snow.snow_dirt_intro, 0, 460],
                 [platforms_snow.snow_dirt_big_wall, 769, 0]]

        special_enemy_pic = [[platforms_special_enemy.big_ogre_a, 67, 50]]
        enemy_pic = [[platforms_enemy.fat_frog, 70, 180]]
        health_pic = [[platforms_item.restore_health, 70, 260]]

        portal = [[platforms_item.portal_snow, 700, 380]]

        for platform in intro:
            block = platforms_snow.Platform_snow(platform[0])
            block.rect.x = platform[1]
            block.rect.y = platform[2]
            block.player = self.player
            self.platform_list.add(block)

        for platform in portal:
            gate = platforms_snow.Platform_snow(platform[0])
            gate.rect.x = platform[1]
            gate.rect.y = platform[2]
            gate.player = self.player
            self.portal_list.add(gate)

        # for tutorial purpose
        # for special enemy
        for platform in special_enemy_pic:
            special_eaten_A = platforms_special_enemy.Platform_special_enemy(
                platform[0])
            special_eaten_A.rect.x = platform[1]
            special_eaten_A.rect.y = platform[2]
            special_eaten_A.player = self.player
            self.special_enemy_icon_list.add(special_eaten_A)

        # for enemy
        for platform in enemy_pic:
            eaten = platforms_enemy.Platform_enemy(platform[0])
            eaten.rect.x = platform[1]
            eaten.rect.y = platform[2]
            eaten.player = self.player
            self.general_enemy_icon_list.add(eaten)

        # for health point
        for platform in health_pic:
            love_restore = platforms_item.Platform_hiragana_katakana(
                platform[0])
            love_restore.rect.x = platform[1]
            love_restore.rect.y = platform[2]
            love_restore.player = self.player
            self.health_icon_list.add(love_restore)
Пример #7
0
    def __init__(self, player):
        """ Definition for Level 06 """

        # Call the parent constructor
        Level.__init__(self, player)

        self.background = pygame.image.load(
            "spritesheet/snow_background.png").convert_alpha()
        self.background.set_colorkey(constants.WHITE)
        self.level_limit = -1146

        # Array with type of platform, and x, y location of the platform.
        # for level 06
        level06 = [
            [platforms_snow.snow_dirt_wall, -140, 0],
            [platforms_snow.snow_dirt_grass_medium_large, 0, 530],
            [platforms_snow.snow_dirt_grass_short_tall, 490, 390],
            [platforms_snow.snow_dirt_grass_medium_tall, 560, 320],
            [platforms_snow.snow_dirt_grass_rounded, 320, 190],
            [platforms_snow.snow_dirt_tall_grass_left_right, 740, 0],
            [platforms_snow.snow_dirt_grass_small_large, 0, 120],
            [platforms_snow.snow_dirt_tall_grass_left_right, 1240, 260],
            [platforms_snow.snow_dirt_grass_up_down, 1310, 260],
            [platforms_snow.snow_dirt_grass_medium_large, 1380, 460],
            [platforms_snow.snow_dirt_grass_medium_large, 1870, 460],
            [platforms_snow.snow_dirt_big_wall, 2080, 0]
        ]

        water_level06 = [
            [platforms_bad_sprite.medium_long_water, 280, 531],
            [platforms_bad_sprite.medium_long_water, 630, 531],
            [platforms_bad_sprite.medium_long_water, 840, 531],
            [platforms_bad_sprite.medium_long_water, 1030, 531],
            [platforms_bad_sprite.medium_short_water, 1310, 531],
            [platforms_bad_sprite.medium_long_water, 1660, 531]
        ]

        portal = [[platforms_item.portal_snow, 2010, 390]]

        love_health = [[platforms_item.restore_health, 0, 40],
                       [platforms_item.restore_health, 1450, 350]]

        # hiragana point
        hiragana_na = [[platforms_hiragana.hiragana_na, 560, 100]]
        hiragana_ni = [[platforms_hiragana.hiragana_ni, 200, 175]]
        hiragana_nu = [[platforms_hiragana.hiragana_nu, 640, 0]]
        hiragana_ne = [[platforms_hiragana.hiragana_ne, 830, 35]]
        hiragana_no = [[platforms_hiragana.hiragana_no, 1380, 350]]

        # enemys
        ghost = [[platforms_enemy.skull_ghost, 490, 330],
                 [platforms_enemy.skull_ghost, 580, 260]]

        # special enemys
        special_enemy_na = [[platforms_special_enemy.dark_rabbit_na, 320, 80]]
        special_enemy_ni = [[platforms_special_enemy.dark_rabbit_ni, 50, 15]]
        special_enemy_no = [
            [platforms_special_enemy.dark_rabbit_no, 1870, 350]]

        for platform in level06:
            block = platforms_snow.Platform_snow(platform[0])
            block.rect.x = platform[1]
            block.rect.y = platform[2]
            block.player = self.player
            self.platform_list.add(block)

        for platform in water_level06:
            water_suicide_lv6 = platforms_bad_sprite.Platform_dirt(platform[0])
            water_suicide_lv6.rect.x = platform[1]
            water_suicide_lv6.rect.y = platform[2]
            water_suicide_lv6.player = self.player
            self.death_place_list_lv6.add(water_suicide_lv6)

        for platform in portal:
            gate = platforms_item.Platform_snow(platform[0])
            gate.rect.x = platform[1]
            gate.rect.y = platform[2]
            gate.player = self.player
            self.portal_list.add(gate)

        for platform in love_health:
            love_restore = platforms_item.Platform_hiragana_katakana(
                platform[0])
            love_restore.rect.x = platform[1]
            love_restore.rect.y = platform[2]
            love_restore.player = self.player
            self.love_restore_health.add(love_restore)

        # Enemys
        for platform in ghost:
            eaten_lv6 = platforms_enemy.Platform_enemy(platform[0])
            eaten_lv6.rect.x = platform[1]
            eaten_lv6.rect.y = platform[2]
            eaten_lv6.player = self.player
            self.enemy_list_lv6.add(eaten_lv6)

        # Special enemys
        # Hiragana Na
        for platform in special_enemy_na:
            special_eaten_NA = platforms_special_enemy.Platform_special_enemy(
                platform[0])
            special_eaten_NA.rect.x = platform[1]
            special_eaten_NA.rect.y = platform[2]
            special_eaten_NA.player = self.player
            self.special_enemy_list_NA.add(special_eaten_NA)

        # Hiragana Ni
        for platform in special_enemy_ni:
            special_eaten_NI = platforms_special_enemy.Platform_special_enemy(
                platform[0])
            special_eaten_NI.rect.x = platform[1]
            special_eaten_NI.rect.y = platform[2]
            special_eaten_NI.player = self.player
            self.special_enemy_list_NI.add(special_eaten_NI)

        # Hiragana No
        for platform in special_enemy_no:
            special_eaten_NO = platforms_special_enemy.Platform_special_enemy(
                platform[0])
            special_eaten_NO.rect.x = platform[1]
            special_eaten_NO.rect.y = platform[2]
            special_eaten_NO.player = self.player
            self.special_enemy_list_NO.add(special_eaten_NO)

        # Point
        # Hiragana Na
        for platform in hiragana_na:
            true_point_lv6 = platforms_hiragana.Platform_hiragana_katakana(
                platform[0])
            true_point_lv6.rect.x = platform[1]
            true_point_lv6.rect.y = platform[2]
            true_point_lv6.player = self.player
            self.hiragana_NA.add(true_point_lv6)

        # Hiragana Ni
        for platform in hiragana_ni:
            true_point_lv6 = platforms_hiragana.Platform_hiragana_katakana(
                platform[0])
            true_point_lv6.rect.x = platform[1]
            true_point_lv6.rect.y = platform[2]
            true_point_lv6.player = self.player
            self.hiragana_NI.add(true_point_lv6)

        # Hiragana Nu
        for platform in hiragana_nu:
            true_point_lv6 = platforms_hiragana.Platform_hiragana_katakana(
                platform[0])
            true_point_lv6.rect.x = platform[1]
            true_point_lv6.rect.y = platform[2]
            true_point_lv6.player = self.player
            self.hiragana_NU.add(true_point_lv6)

        # Hiragana Ne
        for platform in hiragana_ne:
            true_point_lv6 = platforms_hiragana.Platform_hiragana_katakana(
                platform[0])
            true_point_lv6.rect.x = platform[1]
            true_point_lv6.rect.y = platform[2]
            true_point_lv6.player = self.player
            self.hiragana_NE.add(true_point_lv6)

        # Hiragana No
        for platform in hiragana_no:
            true_point_lv6 = platforms_hiragana.Platform_hiragana_katakana(
                platform[0])
            true_point_lv6.rect.x = platform[1]
            true_point_lv6.rect.y = platform[2]
            true_point_lv6.player = self.player
            self.hiragana_NO.add(true_point_lv6)

        # add moving sprites
        block = platforms_snow.MovingPlatform_snow(
            platforms_snow.snow_dirt_half)
        block.rect.x = 690
        block.rect.y = 483
        block.boundary_left = 690
        block.boundary_right = 1100
        block.change_x = 3
        block.player = self.player
        block.level = self
        self.platform_list.add(block)

        block = platforms_snow.MovingPlatform_snow(
            platforms_snow.snow_dirt_half)
        block.rect.x = 820
        block.rect.y = 343
        block.boundary_left = 820
        block.boundary_right = 1100
        block.change_x = 4
        block.player = self.player
        block.level = self
        self.platform_list.add(block)

        # add moving enemys
        eaten_lv6 = platforms_enemy.MovingEnemy(platforms_enemy.skull_ghost)
        eaten_lv6.rect.x = 690
        eaten_lv6.rect.y = 430
        eaten_lv6.boundary_left = 690
        eaten_lv6.boundary_right = 1100
        eaten_lv6.change_x = 2
        eaten_lv6.player = self.player
        eaten_lv6.level = self
        self.enemy_list_lv6.add(eaten_lv6)

        eaten_lv6 = platforms_enemy.MovingEnemy(platforms_enemy.skull_ghost)
        eaten_lv6.rect.x = 690
        eaten_lv6.rect.y = 380
        eaten_lv6.boundary_left = 690
        eaten_lv6.boundary_right = 1100
        eaten_lv6.change_x = 4
        eaten_lv6.player = self.player
        eaten_lv6.level = self
        self.enemy_list_lv6.add(eaten_lv6)

        eaten_lv6 = platforms_enemy.MovingEnemy(platforms_enemy.skull_ghost)
        eaten_lv6.rect.x = 1350
        eaten_lv6.rect.y = 200
        eaten_lv6.boundary_left = 1350
        eaten_lv6.boundary_right = 1450
        eaten_lv6.change_x = 4
        eaten_lv6.player = self.player
        eaten_lv6.level = self
        self.enemy_list_lv6.add(eaten_lv6)

        # add moving special enemys
        special_eaten_NU = platforms_special_enemy.MovingEnemySpecial(
            platforms_special_enemy.dark_rabbit_nu)
        special_eaten_NU.rect.x = 820
        special_eaten_NU.rect.y = 235
        special_eaten_NU.boundary_left = 820
        special_eaten_NU.boundary_right = 1100
        special_eaten_NU.change_x = 4
        special_eaten_NU.player = self.player
        special_eaten_NU.level = self
        self.special_enemy_list_NU.add(special_eaten_NU)

        special_eaten_NE = platforms_special_enemy.MovingEnemySpecial(
            platforms_special_enemy.dark_rabbit_ne)
        special_eaten_NE.rect.x = 1310
        special_eaten_NE.rect.y = 150
        special_eaten_NE.boundary_left = 1310
        special_eaten_NE.boundary_right = 1450
        special_eaten_NE.change_x = 4
        special_eaten_NE.player = self.player
        special_eaten_NE.level = self
        self.special_enemy_list_NE.add(special_eaten_NE)