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)
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]] # katakana Point katakana_wa = [[platforms_katakana.katakana_wa, 1050, 20]] katakana_wo = [[platforms_katakana.katakana_wo, 350, 100]] katakana_n = [[platforms_katakana.katakana_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_bad_sprite.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 # katakana Wa for platform in katakana_wa: true_point_lv11 = platforms_katakana.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.katakana_WA.add(true_point_lv11) # katakana Wo for platform in katakana_wo: true_point_lv11 = platforms_katakana.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.katakana_WO.add(true_point_lv11) # katakana N for platform in katakana_n: true_point_lv11 = platforms_katakana.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.katakana_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 # katakana 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) # katakana 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) # katakana 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)
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]] # katakana point katakana_ha = [[platforms_katakana.katakana_ha, 420, 210]] katakana_hi = [[platforms_katakana.katakana_hi, 820, 10]] katakana_hu = [[platforms_katakana.katakana_hu, 180, 130]] katakana_he = [[platforms_katakana.katakana_he, 0, 20]] katakana_ho = [[platforms_katakana.katakana_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 # katakana 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) # katakana 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) # katakana 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) # katakana 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) # katakana 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 # katakana Ha for platform in katakana_ha: true_point_lv7 = platforms_katakana.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.katakana_HA.add(true_point_lv7) # katakana Hi for platform in katakana_hi: true_point_lv7 = platforms_katakana.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.katakana_HI.add(true_point_lv7) # katakana Hu for platform in katakana_hu: true_point_lv7 = platforms_katakana.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.katakana_HU.add(true_point_lv7) # katakana He for platform in katakana_he: true_point_lv7 = platforms_katakana.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.katakana_HE.add(true_point_lv7) # katakana Ho for platform in katakana_ho: true_point_lv7 = platforms_katakana.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.katakana_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)
def __init__(self, player): """ Definition for Level 09 """ # 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 = -1686 # Array with type of platform, and x, y location of the platform. # for level 09 level09 = [ [platforms_ancient_brick.ancient_brick_wall, -140, 0], [platforms_ancient_brick.ancient_brick_tall_large_long, 0, 530], [platforms_ancient_brick.ancient_brick_tall_large_long, 0, 74], [platforms_ancient_brick.ancient_brick_tall_sand_left_right, 420, 180], [platforms_ancient_brick.ancient_brick_basic, 420, 130], [platforms_ancient_brick.ancient_brick_medium_sand_top_down, 490, 130], [platforms_ancient_brick.ancient_brick_medium_sand_top_down, 490, 340], [platforms_ancient_brick.ancient_brick_tall_large_small, 910, 410], [platforms_ancient_brick.ancient_brick_tall_large_medium, 980, 480], [platforms_ancient_brick.ancient_brick_short_land, 1570, 100], [platforms_ancient_brick.ancient_brick_tall_large_long, 2200, 530], [platforms_ancient_brick.ancient_brick_tall_large_long, 2410, 530], [platforms_ancient_brick.ancient_brick_big_wall, 2620, 0], [platforms_ancient_brick.ancient_brick_wall, 2900, 0] ] water_level09 = [ [platforms_bad_sprite.medium_long_water, 210, 531], [platforms_bad_sprite.medium_long_water, 490, 531], [platforms_bad_sprite.medium_long_water, 700, 531], [platforms_bad_sprite.medium_long_water, 1120, 531], [platforms_bad_sprite.medium_long_water, 1330, 531], [platforms_bad_sprite.medium_long_water, 1540, 531], [platforms_bad_sprite.medium_short_water, 1660, 531], [platforms_bad_sprite.medium_long_water, 1730, 531], [platforms_bad_sprite.medium_long_water, 1940, 531], [platforms_bad_sprite.medium_short_water, 2060, 531] ] portal = [[platforms_item.portal_snow, 2550, 459]] love_health = [[platforms_item.restore_health, 600, 250]] # katakana katakana_ya = [[platforms_katakana.katakana_ya, 20, 10]] katakana_yu = [[platforms_katakana.katakana_yu, 500, 250]] katakana_yo = [[platforms_katakana.katakana_yo, 1150, 20]] # Special enemy special_enemy_ya = [[platforms_special_enemy.zombie_skull_ya, 420, 35]] for platform in level09: block = platforms_ancient_brick.Platform_ancient_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 water_level09: water_suicide_lv9 = platforms_bad_sprite.Platform_dirt(platform[0]) water_suicide_lv9.rect.x = platform[1] water_suicide_lv9.rect.y = platform[2] water_suicide_lv9.player = self.player self.death_place_list_lv9.add(water_suicide_lv9) 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) # Special enemys # katakana Ya for platform in special_enemy_ya: special_eaten_YA = platforms_special_enemy.Platform_special_enemy( platform[0]) special_eaten_YA.rect.x = platform[1] special_eaten_YA.rect.y = platform[2] special_eaten_YA.player = self.player self.special_enemy_list_YA.add(special_eaten_YA) # Point # katakana Ya for platform in katakana_ya: true_point_lv9 = platforms_katakana.Platform_hiragana_katakana( platform[0]) true_point_lv9.rect.x = platform[1] true_point_lv9.rect.y = platform[2] true_point_lv9.player = self.player self.katakana_YA.add(true_point_lv9) # katakana Yu for platform in katakana_yu: true_point_lv9 = platforms_katakana.Platform_hiragana_katakana( platform[0]) true_point_lv9.rect.x = platform[1] true_point_lv9.rect.y = platform[2] true_point_lv9.player = self.player self.katakana_YU.add(true_point_lv9) # katakana Yo for platform in katakana_yo: true_point_lv9 = platforms_katakana.Platform_hiragana_katakana( platform[0]) true_point_lv9.rect.x = platform[1] true_point_lv9.rect.y = platform[2] true_point_lv9.player = self.player self.katakana_YO.add(true_point_lv9) # add moving sprites block = platforms_ancient_brick.MovingPlatform_ancient_brick( platforms_ancient_brick.ancient_brick_half) block.rect.x = 280 block.rect.y = 483 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 sprites block = platforms_ancient_brick.MovingPlatform_ancient_brick( platforms_ancient_brick.ancient_brick_half) block.rect.x = 700 block.rect.y = 483 block.boundary_top = 100 block.boundary_bottom = 600 block.change_y = 2 block.player = self.player block.level = self self.platform_list.add(block) # add moving sprites block = platforms_ancient_brick.MovingPlatform_ancient_brick( platforms_ancient_brick.ancient_brick_half) block.rect.x = 1120 block.rect.y = 343 block.boundary_left = 1120 block.boundary_right = 1500 block.change_x = 2 block.player = self.player block.level = self self.platform_list.add(block) # add moving sprites block = platforms_ancient_brick.MovingPlatform_ancient_brick( platforms_ancient_brick.ancient_brick_half) block.rect.x = 1120 block.rect.y = 203 block.boundary_left = 1120 block.boundary_right = 1500 block.change_x = 3 block.player = self.player block.level = self self.platform_list.add(block) # add moving enemys eaten_lv9 = platforms_enemy.MovingEnemy(platforms_enemy.old_skull) eaten_lv9.rect.x = 70 eaten_lv9.rect.y = 25 eaten_lv9.boundary_left = 70 eaten_lv9.boundary_right = 180 eaten_lv9.change_x = 3 eaten_lv9.player = self.player eaten_lv9.level = self self.enemy_list_lv9.add(eaten_lv9) eaten_lv9 = platforms_enemy.MovingEnemy(platforms_enemy.dark_bat) eaten_lv9.rect.x = 280 eaten_lv9.rect.y = 100 eaten_lv9.boundary_top = 100 eaten_lv9.boundary_bottom = 450 eaten_lv9.change_y = 4 eaten_lv9.player = self.player eaten_lv9.level = self self.enemy_list_lv9.add(eaten_lv9) eaten_lv9 = platforms_enemy.MovingEnemy(platforms_enemy.dark_bat) eaten_lv9.rect.x = 700 eaten_lv9.rect.y = 100 eaten_lv9.boundary_top = 100 eaten_lv9.boundary_bottom = 450 eaten_lv9.change_y = 2 eaten_lv9.player = self.player eaten_lv9.level = self self.enemy_list_lv9.add(eaten_lv9) # add moving special enemy # katakana Yu special_eaten_YU = platforms_special_enemy.MovingEnemySpecial( platforms_special_enemy.zombie_skull_yu) special_eaten_YU.rect.x = 1120 special_eaten_YU.rect.y = 110 special_eaten_YU.boundary_left = 1120 special_eaten_YU.boundary_right = 1500 special_eaten_YU.change_x = 3 special_eaten_YU.player = self.player special_eaten_YU.level = self self.special_enemy_list_YU.add(special_eaten_YU) # katakana Yo special_eaten_YO = platforms_special_enemy.MovingEnemySpecial( platforms_special_enemy.zombie_skull_yo) special_eaten_YO.rect.x = 1570 special_eaten_YO.rect.y = 10 special_eaten_YO.boundary_left = 1570 special_eaten_YO.boundary_right = 1670 special_eaten_YO.change_x = 3 special_eaten_YO.player = self.player special_eaten_YO.level = self self.special_enemy_list_YO.add(special_eaten_YO)
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)
def __init__(self, player): """ Create Level 2 """ # 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 = -1096 # Array with type of platform, and x, y location of the platform. # for level 02 level02 = [[platforms_dirt.dirt_wall, -140, 0], [platforms_dirt.dirt_medium_long_land, 0, 460], [platforms_dirt.dirt_medium_short_land, 0, 92], [platforms_dirt.dirt_wall, 700, 100], [platforms_dirt.dirt_medium_short_land, 1050, 460], [platforms_dirt.dirt_medium_short_land, 1050, 180], [platforms_dirt.dirt_short_land, 1540, 460], [platforms_dirt.dirt_short_land, 1540, 180], [platforms_dirt.dirt_medium_short_land, 1890, 460], [platforms_dirt.dirt_big_wall, 2030, 0]] water_level02 = [[platforms_bad_sprite.medium_long_water, 490, 531], [platforms_bad_sprite.medium_long_water, 840, 531], [platforms_bad_sprite.medium_long_water, 1330, 531], [platforms_bad_sprite.medium_long_water, 1680, 531]] portal = [[platforms_item.portal_snow, 1960, 380]] love_health = [[platforms_item.restore_health, 1860, 380]] # true point katakana_u = [[platforms_katakana.katakana_u, 20, 10]] katakana_i = [[platforms_katakana.katakana_i, 850, 258]] katakana_o = [[platforms_katakana.katakana_o, 1280, 350]] katakana_a = [[platforms_katakana.katakana_a, 1400, 280]] katakana_e = [[platforms_katakana.katakana_e, 1400, 100]] # for special enemy special_enemy_u = [[platforms_special_enemy.big_ogre_u, 730, 2]] special_enemy_o = [[platforms_special_enemy.big_ogre_o, 1050, 75]] special_enemy_i = [[platforms_special_enemy.big_ogre_i, 1050, 350]] special_enemy_a = [[platforms_special_enemy.big_ogre_a, 1565, 75]] special_enemy_e = [[platforms_special_enemy.big_ogre_e, 1565, 350]] for platform in level02: 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_level02: water_suicide_lv2 = platforms_dirt.Platform_dirt(platform[0]) water_suicide_lv2.rect.x = platform[1] water_suicide_lv2.rect.y = platform[2] water_suicide_lv2.player = self.player self.death_place_list_lv2.add(water_suicide_lv2) 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) # True Point increease scores player # katakana U Point for platform in katakana_u: true_point_lv2 = platforms_katakana.Platform_hiragana_katakana( platform[0]) true_point_lv2.rect.x = platform[1] true_point_lv2.rect.y = platform[2] true_point_lv2.player = self.player self.katakana_U_lv2.add(true_point_lv2) # katakana I for platform in katakana_i: true_point_lv2 = platforms_katakana.Platform_hiragana_katakana( platform[0]) true_point_lv2.rect.x = platform[1] true_point_lv2.rect.y = platform[2] true_point_lv2.player = self.player self.katakana_I_lv2.add(true_point_lv2) # katakana O for platform in katakana_o: true_point_lv2 = platforms_katakana.Platform_hiragana_katakana( platform[0]) true_point_lv2.rect.x = platform[1] true_point_lv2.rect.y = platform[2] true_point_lv2.player = self.player self.katakana_O.add(true_point_lv2) # katakana a for platform in katakana_a: true_point_lv2 = platforms_katakana.Platform_hiragana_katakana( platform[0]) true_point_lv2.rect.x = platform[1] true_point_lv2.rect.y = platform[2] true_point_lv2.player = self.player self.katakana_A_lv2.add(true_point_lv2) # katakana e for platform in katakana_e: true_point_lv2 = platforms_katakana.Platform_hiragana_katakana( platform[0]) true_point_lv2.rect.x = platform[1] true_point_lv2.rect.y = platform[2] true_point_lv2.player = self.player self.katakana_E.add(true_point_lv2) # for special enemy # katakana U for platform in special_enemy_u: special_eaten_U_lv2 = \ platforms_special_enemy.Platform_special_enemy(platform[0]) special_eaten_U_lv2.rect.x = platform[1] special_eaten_U_lv2.rect.y = platform[2] special_eaten_U_lv2.player = self.player self.special_enemy_list_U_lv2.add(special_eaten_U_lv2) # katakana O for platform in special_enemy_o: special_eaten_O = platforms_special_enemy.Platform_special_enemy( platform[0]) special_eaten_O.rect.x = platform[1] special_eaten_O.rect.y = platform[2] special_eaten_O.player = self.player self.special_enemy_list_O.add(special_eaten_O) # katakana I for platform in special_enemy_i: special_eaten_I_lv2 = \ platforms_special_enemy.Platform_special_enemy(platform[0]) special_eaten_I_lv2.rect.x = platform[1] special_eaten_I_lv2.rect.y = platform[2] special_eaten_I_lv2.player = self.player self.special_enemy_list_I_lv2.add(special_eaten_I_lv2) # katakana A for platform in special_enemy_a: special_eaten_A_lv2 = \ platforms_special_enemy.Platform_special_enemy(platform[0]) special_eaten_A_lv2.rect.x = platform[1] special_eaten_A_lv2.rect.y = platform[2] special_eaten_A_lv2.player = self.player self.special_enemy_list_A_lv2.add(special_eaten_A_lv2) # katakana E for platform in special_enemy_e: special_eaten_E = platforms_special_enemy.Platform_special_enemy( platform[0]) special_eaten_E.rect.x = platform[1] special_eaten_E.rect.y = platform[2] special_eaten_E.player = self.player self.special_enemy_list_E.add(special_eaten_E) # add moving sprites block = platforms_dirt.MovingPlatform_dirt( platforms_dirt.dirt_grass_rounded) block.rect.x = 560 block.rect.y = 483 block.boundary_top = 100 block.boundary_bottom = 600 block.change_y = 3 block.player = self.player block.level = self self.platform_list.add(block) block = platforms_dirt.MovingPlatform_dirt( platforms_dirt.dirt_grass_rounded) block.rect.x = 910 block.rect.y = 483 block.boundary_top = 100 block.boundary_bottom = 600 block.change_y = 4 block.player = self.player block.level = self self.platform_list.add(block) # Moving Enemy eaten_lv2 = platforms_enemy.MovingEnemy(platforms_enemy.bad_ogre) eaten_lv2.rect.x = 200 eaten_lv2.rect.y = 400 eaten_lv2.boundary_left = 200 eaten_lv2.boundary_right = 450 eaten_lv2.change_x = 5 eaten_lv2.player = self.player eaten_lv2.level = self self.enemy_list_lv2.add(eaten_lv2) eaten_lv2 = platforms_enemy.MovingEnemy(platforms_enemy.bad_ogre) eaten_lv2.rect.x = 70 eaten_lv2.rect.y = 30 eaten_lv2.boundary_left = 70 eaten_lv2.boundary_right = 230 eaten_lv2.change_x = 3 eaten_lv2.player = self.player eaten_lv2.level = self self.enemy_list_lv2.add(eaten_lv2) eaten_lv2 = platforms_enemy.MovingEnemy(platforms_enemy.bad_ogre) eaten_lv2.rect.x = 1160 eaten_lv2.rect.y = 120 eaten_lv2.boundary_left = 1160 eaten_lv2.boundary_right = 1300 eaten_lv2.change_x = 3 eaten_lv2.player = self.player eaten_lv2.level = self self.enemy_list_lv2.add(eaten_lv2) eaten_lv2 = platforms_enemy.MovingEnemy(platforms_enemy.bad_ogre) eaten_lv2.rect.x = 1160 eaten_lv2.rect.y = 400 eaten_lv2.boundary_left = 1160 eaten_lv2.boundary_right = 1300 eaten_lv2.change_x = 3 eaten_lv2.player = self.player eaten_lv2.level = self self.enemy_list_lv2.add(eaten_lv2)
def __init__(self, player): """ Definition for Level 04 """ # 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 = -1095 # Array with type of platform, and x, y location of the platform. # for level 04 level04 = [ [platforms_red_brick.brick_red_wall, -140, 0], [platforms_red_brick.brick_red_medium_long_land, 0, 529], [platforms_red_brick.brick_red_medium_long_land, 210, 529], [platforms_red_brick.brick_red_grass_rounded, 300, 150], [platforms_red_brick.brick_red_medium_short_land, 0, 150], [platforms_red_brick.brick_red_grass_left_right_long, 700, 180], [platforms_red_brick.brick_red_medium_long_land, 979, 80], [platforms_red_brick.brick_red_medium_long_land, 979, 280], [platforms_red_brick.brick_red_medium_high_land, 979, 470], [platforms_red_brick.brick_red_medium_short_land, 1049, 529], [platforms_red_brick.brick_red_medium_high_land, 1189, 470], [platforms_red_brick.brick_red_grass_left_right_long, 1400, 250], [platforms_red_brick.brick_red_grass_left_right_long, 1400, -300], [platforms_red_brick.brick_red_medium_high_large_land, 1609, 470], [platforms_red_brick.brick_red_medium_short_land, 1819, 540], [platforms_red_brick.brick_red_medium_short_land, 1959, 540], [platforms_red_brick.brick_red_big_wall, 2029, 0] ] water_level04 = [[platforms_bad_sprite.medium_long_water, 490, 532], [platforms_bad_sprite.medium_long_water, 770, 532], [platforms_bad_sprite.medium_long_water, 1260, 532], [platforms_bad_sprite.medium_short_water, 1470, 532]] portal = [[platforms_item.portal_snow, 1930, 440]] love_health = [[platforms_item.restore_health, 80, 50], [platforms_item.restore_health, 1100, 480], [platforms_item.restore_health, 1300, 340]] # special enemys special_enemy_sa = [[platforms_special_enemy.orange_slime_sa, 695, 80]] special_enemy_si = [[platforms_special_enemy.orange_slime_si, 295, 50]] special_enemy_su = [[ platforms_special_enemy.orange_slime_su, 1180, 183 ]] special_enemy_se = [[ platforms_special_enemy.orange_slime_se, 1395, 150 ]] special_enemy_so = [[ platforms_special_enemy.orange_slime_so, 1609, 370 ]] # katakana Point katakana_sa = [[platforms_katakana.katakana_sa, 150, 50]] katakana_si = [[platforms_katakana.katakana_si, 560, 100]] katakana_su = [[platforms_katakana.katakana_su, 1189, 370]] katakana_se = [[platforms_katakana.katakana_se, 1189, 10]] katakana_so = [[platforms_katakana.katakana_so, 1500, 340]] for platform in level04: block = platforms_red_brick.Platform_grass_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 water_level04: water_suicide_lv4 = platforms_bad_sprite.Platform_dirt(platform[0]) water_suicide_lv4.rect.x = platform[1] water_suicide_lv4.rect.y = platform[2] water_suicide_lv4.player = self.player self.death_place_list_lv4.add(water_suicide_lv4) 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) # Special enemys # katakana Sa for platform in special_enemy_sa: special_eaten_SA = platforms_special_enemy.Platform_special_enemy( platform[0]) special_eaten_SA.rect.x = platform[1] special_eaten_SA.rect.y = platform[2] special_eaten_SA.player = self.player self.special_enemy_list_SA.add(special_eaten_SA) # katakana Si for platform in special_enemy_si: special_eaten_SI = platforms_special_enemy.Platform_special_enemy( platform[0]) special_eaten_SI.rect.x = platform[1] special_eaten_SI.rect.y = platform[2] special_eaten_SI.player = self.player self.special_enemy_list_SI.add(special_eaten_SI) # katakana Su for platform in special_enemy_su: special_eaten_SU = platforms_special_enemy.Platform_special_enemy( platform[0]) special_eaten_SU.rect.x = platform[1] special_eaten_SU.rect.y = platform[2] special_eaten_SU.player = self.player self.special_enemy_list_SU.add(special_eaten_SU) # katakana Se for platform in special_enemy_se: special_eaten_SE = platforms_special_enemy.Platform_special_enemy( platform[0]) special_eaten_SE.rect.x = platform[1] special_eaten_SE.rect.y = platform[2] special_eaten_SE.player = self.player self.special_enemy_list_SE.add(special_eaten_SE) # katakana So for platform in special_enemy_so: special_eaten_SO = platforms_special_enemy.Platform_special_enemy( platform[0]) special_eaten_SO.rect.x = platform[1] special_eaten_SO.rect.y = platform[2] special_eaten_SO.player = self.player self.special_enemy_list_SO.add(special_eaten_SO) # Point # katakana Sa for platform in katakana_sa: true_point_lv4 = platforms_katakana.Platform_hiragana_katakana( platform[0]) true_point_lv4.rect.x = platform[1] true_point_lv4.rect.y = platform[2] true_point_lv4.player = self.player self.katakana_SA.add(true_point_lv4) # katakana Si for platform in katakana_si: true_point_lv4 = platforms_katakana.Platform_hiragana_katakana( platform[0]) true_point_lv4.rect.x = platform[1] true_point_lv4.rect.y = platform[2] true_point_lv4.player = self.player self.katakana_SI.add(true_point_lv4) # katakana Si for platform in katakana_su: true_point_lv4 = platforms_katakana.Platform_hiragana_katakana( platform[0]) true_point_lv4.rect.x = platform[1] true_point_lv4.rect.y = platform[2] true_point_lv4.player = self.player self.katakana_SU.add(true_point_lv4) # katakana Se for platform in katakana_se: true_point_lv4 = platforms_katakana.Platform_hiragana_katakana( platform[0]) true_point_lv4.rect.x = platform[1] true_point_lv4.rect.y = platform[2] true_point_lv4.player = self.player self.katakana_SE.add(true_point_lv4) # katakana So for platform in katakana_so: true_point_lv4 = platforms_katakana.Platform_hiragana_katakana( platform[0]) true_point_lv4.rect.x = platform[1] true_point_lv4.rect.y = platform[2] true_point_lv4.player = self.player self.katakana_SO.add(true_point_lv4) # add moving sprites block = platforms_red_brick.MovingPlatform_brick_red( platforms_red_brick.brick_red_small_half) block.rect.x = 560 block.rect.y = 483 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 sprites block = platforms_red_brick.MovingPlatform_brick_red( platforms_red_brick.brick_red_small_half) block.rect.x = 800 block.rect.y = 483 block.boundary_top = 100 block.boundary_bottom = 600 block.change_y = 3 block.player = self.player block.level = self self.platform_list.add(block) # Enemys eaten_lv4 = platforms_enemy.MovingEnemy(platforms_enemy.old_skull) eaten_lv4.rect.x = 0 eaten_lv4.rect.y = 80 eaten_lv4.boundary_left = 0 eaten_lv4.boundary_right = 100 eaten_lv4.change_x = 3 eaten_lv4.player = self.player eaten_lv4.level = self self.enemy_list_lv4.add(eaten_lv4) eaten_lv4 = platforms_enemy.MovingEnemy(platforms_enemy.old_skull) eaten_lv4.rect.x = 300 eaten_lv4.rect.y = 470 eaten_lv4.boundary_left = 300 eaten_lv4.boundary_right = 400 eaten_lv4.change_x = 3 eaten_lv4.player = self.player eaten_lv4.level = self self.enemy_list_lv4.add(eaten_lv4) eaten_lv4 = platforms_enemy.MovingEnemy(platforms_enemy.old_skull) eaten_lv4.rect.x = 350 eaten_lv4.rect.y = 470 eaten_lv4.boundary_left = 350 eaten_lv4.boundary_right = 450 eaten_lv4.change_x = 4 eaten_lv4.player = self.player eaten_lv4.level = self self.enemy_list_lv4.add(eaten_lv4) eaten_lv4 = platforms_enemy.MovingEnemy(platforms_enemy.old_skull) eaten_lv4.rect.x = 1000 eaten_lv4.rect.y = 230 eaten_lv4.boundary_left = 1000 eaten_lv4.boundary_right = 1150 eaten_lv4.change_x = 4 eaten_lv4.player = self.player eaten_lv4.level = self self.enemy_list_lv4.add(eaten_lv4) eaten_lv4 = platforms_enemy.MovingEnemy(platforms_enemy.dark_bat) eaten_lv4.rect.x = 560 eaten_lv4.rect.y = 200 eaten_lv4.boundary_top = 100 eaten_lv4.boundary_bottom = 400 eaten_lv4.change_y = 4 eaten_lv4.player = self.player eaten_lv4.level = self self.enemy_list_lv4.add(eaten_lv4) eaten_lv4 = platforms_enemy.MovingEnemy(platforms_enemy.dark_bat) eaten_lv4.rect.x = 600 eaten_lv4.rect.y = 20 eaten_lv4.boundary_left = 600 eaten_lv4.boundary_right = 800 eaten_lv4.change_x = 3 eaten_lv4.player = self.player eaten_lv4.level = self self.enemy_list_lv4.add(eaten_lv4) eaten_lv4 = platforms_enemy.MovingEnemy(platforms_enemy.dark_bat) eaten_lv4.rect.x = 800 eaten_lv4.rect.y = 200 eaten_lv4.boundary_top = 100 eaten_lv4.boundary_bottom = 400 eaten_lv4.change_y = 4 eaten_lv4.player = self.player eaten_lv4.level = self self.enemy_list_lv4.add(eaten_lv4) eaten_lv4 = platforms_enemy.MovingEnemy(platforms_enemy.dark_bat) eaten_lv4.rect.x = 979 eaten_lv4.rect.y = 370 eaten_lv4.boundary_left = 979 eaten_lv4.boundary_right = 1200 eaten_lv4.change_x = 3 eaten_lv4.player = self.player eaten_lv4.level = self self.enemy_list_lv4.add(eaten_lv4) eaten_lv4 = platforms_enemy.MovingEnemy(platforms_enemy.dark_bat) eaten_lv4.rect.x = 1300 eaten_lv4.rect.y = 200 eaten_lv4.boundary_top = 100 eaten_lv4.boundary_bottom = 400 eaten_lv4.change_y = 4 eaten_lv4.player = self.player eaten_lv4.level = self self.enemy_list_lv4.add(eaten_lv4) eaten_lv4 = platforms_enemy.MovingEnemy(platforms_enemy.dark_bat) eaten_lv4.rect.x = 1500 eaten_lv4.rect.y = 200 eaten_lv4.boundary_top = 100 eaten_lv4.boundary_bottom = 400 eaten_lv4.change_y = 4 eaten_lv4.player = self.player eaten_lv4.level = self self.enemy_list_lv4.add(eaten_lv4) eaten_lv4 = platforms_enemy.MovingEnemy(platforms_enemy.dark_bat) eaten_lv4.rect.x = 1600 eaten_lv4.rect.y = 280 eaten_lv4.boundary_left = 1600 eaten_lv4.boundary_right = 1800 eaten_lv4.change_x = 3 eaten_lv4.player = self.player eaten_lv4.level = self self.enemy_list_lv4.add(eaten_lv4) eaten_lv4 = platforms_enemy.MovingEnemy(platforms_enemy.fat_frog) eaten_lv4.rect.x = 979 eaten_lv4.rect.y = 30 eaten_lv4.boundary_left = 979 eaten_lv4.boundary_right = 1100 eaten_lv4.change_x = 3 eaten_lv4.player = self.player eaten_lv4.level = self self.enemy_list_lv4.add(eaten_lv4) eaten_lv4 = platforms_enemy.MovingEnemy(platforms_enemy.fat_frog) eaten_lv4.rect.x = 1045 eaten_lv4.rect.y = 480 eaten_lv4.boundary_left = 1045 eaten_lv4.boundary_right = 1150 eaten_lv4.change_x = 3 eaten_lv4.player = self.player eaten_lv4.level = self self.enemy_list_lv4.add(eaten_lv4)
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]] # katakana point katakana_na = [[platforms_katakana.katakana_na, 560, 100]] katakana_ni = [[platforms_katakana.katakana_ni, 200, 175]] katakana_nu = [[platforms_katakana.katakana_nu, 640, 0]] katakana_ne = [[platforms_katakana.katakana_ne, 830, 35]] katakana_no = [[platforms_katakana.katakana_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 # katakana 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) # katakana 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) # katakana 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 # katakana Na for platform in katakana_na: true_point_lv6 = platforms_katakana.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.katakana_NA.add(true_point_lv6) # katakana Ni for platform in katakana_ni: true_point_lv6 = platforms_katakana.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.katakana_NI.add(true_point_lv6) # katakana Nu for platform in katakana_nu: true_point_lv6 = platforms_katakana.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.katakana_NU.add(true_point_lv6) # katakana Ne for platform in katakana_ne: true_point_lv6 = platforms_katakana.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.katakana_NE.add(true_point_lv6) # katakana No for platform in katakana_no: true_point_lv6 = platforms_katakana.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.katakana_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)
def __init__(self, player): """ Definition for Level 05 """ # 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 = -1583 # Array with type of platform, and x, y location of the platform. # for level 05 level05 = [ [platforms_red_brick.brick_red_wall, -220, 0], [platforms_red_brick.brick_basic, -80, 530], [platforms_red_brick.brick_red_snow_medium_short_land, -20, 530], [platforms_red_brick.brick_red_medium_bottom, 500, 300], [ platforms_red_brick.brick_red_snow_high_small_left_right, 499, 160 ], [platforms_red_brick.brick_red_snow_medium_short_land, 500, 90], [platforms_red_brick.brick_red_snow_medium_short_land, 640, 90], [platforms_red_brick.brick_basic, 980, 529], [platforms_red_brick.brick_red_snow_medium_short_land, 1050, 530], [ platforms_red_brick.brick_red_snow_high_small_left_right, 978, 387 ], [platforms_red_brick.brick_red_snow_medium_short_land, 978, 317], [ platforms_red_brick.brick_red_snow_high_small_left_right, 1188, 177 ], [platforms_red_brick.brick_red_snow_medium_short_land, 1188, 177], [ platforms_red_brick.brick_red_snow_high_small_left_right, 1677, 177 ], [platforms_red_brick.brick_basic, 1680, 317], [platforms_red_brick.brick_red_snow_medium_short_land, 1750, 317], [platforms_red_brick.brick_basic, 2030, 317], [ platforms_red_brick.brick_red_snow_high_small_left_right, 2027, 177 ], [ platforms_red_brick.brick_red_snow_high_small_left_right, 2027, 37 ], [platforms_red_brick.brick_red_snow_medium_short_land, 2237, 530], [platforms_red_brick.brick_red_big_wall, 2517, 0], [platforms_red_brick.brick_red_wall, 2790, 0] ] water_level05 = [[platforms_bad_sprite.medium_short_water, 260, 531], [platforms_bad_sprite.medium_long_water, 280, 531], [platforms_bad_sprite.medium_long_water, 490, 531], [platforms_bad_sprite.medium_long_water, 700, 531], [platforms_bad_sprite.medium_short_water, 770, 531], [platforms_bad_sprite.medium_short_water, 840, 531], [platforms_bad_sprite.medium_long_water, 1330, 531], [platforms_bad_sprite.medium_long_water, 1540, 531], [platforms_bad_sprite.medium_long_water, 1750, 531], [platforms_bad_sprite.medium_long_water, 1960, 531], [platforms_bad_sprite.medium_short_water, 2100, 531]] portal = [[platforms_item.portal_snow, 2447, 440]] love_health = [[platforms_item.restore_health, 1130, 421]] # for special enemys special_enemy_ta = [[platforms_special_enemy.big_ogre_ta, 700, 190]] special_enemy_tu = [[platforms_special_enemy.big_ogre_tu, 1200, 421]] special_enemy_te = [[platforms_special_enemy.big_ogre_te, 1680, 70]] special_enemy_to = [[platforms_special_enemy.big_ogre_to, 2230, 421]] # for point katakana katakana_ta = [[platforms_katakana.katakana_ta, 1000, 190]] katakana_ti = [[platforms_katakana.katakana_ti, 600, 190]] katakana_tu = [[platforms_katakana.katakana_tu, 1538, 200]] katakana_te = [[platforms_katakana.katakana_te, 1050, 421]] katakana_to = [[platforms_katakana.katakana_to, 1950, 190]] for platform in level05: block = platforms_red_brick.Platform_grass_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 water_level05: water_suicide_lv5 = platforms_bad_sprite.Platform_dirt(platform[0]) water_suicide_lv5.rect.x = platform[1] water_suicide_lv5.rect.y = platform[2] water_suicide_lv5.player = self.player self.death_place_list_lv5.add(water_suicide_lv5) 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) # Special enemys # katakana Ta for platform in special_enemy_ta: special_eaten_TA = platforms_special_enemy.Platform_special_enemy( platform[0]) special_eaten_TA.rect.x = platform[1] special_eaten_TA.rect.y = platform[2] special_eaten_TA.player = self.player self.special_enemy_list_TA.add(special_eaten_TA) # katakana Tu for platform in special_enemy_tu: special_eaten_TU = platforms_special_enemy.Platform_special_enemy( platform[0]) special_eaten_TU.rect.x = platform[1] special_eaten_TU.rect.y = platform[2] special_eaten_TU.player = self.player self.special_enemy_list_TU.add(special_eaten_TU) # katakana Te for platform in special_enemy_te: special_eaten_TE = platforms_special_enemy.Platform_special_enemy( platform[0]) special_eaten_TE.rect.x = platform[1] special_eaten_TE.rect.y = platform[2] special_eaten_TE.player = self.player self.special_enemy_list_TE.add(special_eaten_TE) # katakana To for platform in special_enemy_to: special_eaten_TO = platforms_special_enemy.Platform_special_enemy( platform[0]) special_eaten_TO.rect.x = platform[1] special_eaten_TO.rect.y = platform[2] special_eaten_TO.player = self.player self.special_enemy_list_TO.add(special_eaten_TO) # Point # katakana Ta for platform in katakana_ta: true_point_lv5 = platforms_katakana.Platform_hiragana_katakana( platform[0]) true_point_lv5.rect.x = platform[1] true_point_lv5.rect.y = platform[2] true_point_lv5.player = self.player self.katakana_TA.add(true_point_lv5) # katakana Ti for platform in katakana_ti: true_point_lv5 = platforms_katakana.Platform_hiragana_katakana( platform[0]) true_point_lv5.rect.x = platform[1] true_point_lv5.rect.y = platform[2] true_point_lv5.player = self.player self.katakana_TI.add(true_point_lv5) # katakana Ti for platform in katakana_tu: true_point_lv5 = platforms_katakana.Platform_hiragana_katakana( platform[0]) true_point_lv5.rect.x = platform[1] true_point_lv5.rect.y = platform[2] true_point_lv5.player = self.player self.katakana_TU.add(true_point_lv5) # katakana Te for platform in katakana_te: true_point_lv5 = platforms_katakana.Platform_hiragana_katakana( platform[0]) true_point_lv5.rect.x = platform[1] true_point_lv5.rect.y = platform[2] true_point_lv5.player = self.player self.katakana_TE.add(true_point_lv5) # katakana To for platform in katakana_to: true_point_lv5 = platforms_katakana.Platform_hiragana_katakana( platform[0]) true_point_lv5.rect.x = platform[1] true_point_lv5.rect.y = platform[2] true_point_lv5.player = self.player self.katakana_TO.add(true_point_lv5) # add moving sprites block = platforms_red_brick.MovingPlatform_brick_red( platforms_red_brick.brick_red_snow_small_half) block.rect.x = 350 block.rect.y = 483 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 sprites block = platforms_red_brick.MovingPlatform_brick_red( platforms_red_brick.brick_red_snow_small_half) block.rect.x = 850 block.rect.y = 483 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 sprites block = platforms_red_brick.MovingPlatform_brick_red( platforms_red_brick.brick_red_snow_small_half) block.rect.x = 1538 block.rect.y = 483 block.boundary_top = 100 block.boundary_bottom = 600 block.change_y = 2 block.player = self.player block.level = self self.platform_list.add(block) # add moving sprites block = platforms_red_brick.MovingPlatform_brick_red( platforms_red_brick.brick_red_snow_small_half) block.rect.x = 1302 block.rect.y = 483 block.boundary_left = 1302 block.boundary_right = 2167 block.change_x = 2 block.player = self.player block.level = self self.platform_list.add(block) # mov_lv5ing enemys eaten_lv5 = platforms_enemy.MovingEnemy(platforms_enemy.skull_ghost) eaten_lv5.rect.x = 500 eaten_lv5.rect.y = 30 eaten_lv5.boundary_left = 500 eaten_lv5.boundary_right = 700 eaten_lv5.change_x = 5 eaten_lv5.player = self.player eaten_lv5.level = self self.enemy_list_lv5.add(eaten_lv5) eaten_lv5 = platforms_enemy.MovingEnemy(platforms_enemy.skull_ghost) eaten_lv5.rect.x = 600 eaten_lv5.rect.y = 30 eaten_lv5.boundary_left = 600 eaten_lv5.boundary_right = 900 eaten_lv5.change_x = 4 eaten_lv5.player = self.player eaten_lv5.level = self self.enemy_list_lv5.add(eaten_lv5) eaten_lv5 = platforms_enemy.MovingEnemy(platforms_enemy.dark_bat) eaten_lv5.rect.x = 750 eaten_lv5.rect.y = 190 eaten_lv5.boundary_top = 120 eaten_lv5.boundary_bottom = 300 eaten_lv5.change_y = 6 eaten_lv5.player = self.player eaten_lv5.level = self self.enemy_list_lv5.add(eaten_lv5) eaten_lv5 = platforms_enemy.MovingEnemy(platforms_enemy.dark_bat) eaten_lv5.rect.x = 950 eaten_lv5.rect.y = 190 eaten_lv5.boundary_top = 30 eaten_lv5.boundary_bottom = 300 eaten_lv5.change_y = 4 eaten_lv5.player = self.player eaten_lv5.level = self self.enemy_list_lv5.add(eaten_lv5) eaten_lv5 = platforms_enemy.MovingEnemy(platforms_enemy.skull_ghost) eaten_lv5.rect.x = 1185 eaten_lv5.rect.y = 100 eaten_lv5.boundary_left = 1185 eaten_lv5.boundary_right = 1400 eaten_lv5.change_x = 6 eaten_lv5.player = self.player eaten_lv5.level = self self.enemy_list_lv5.add(eaten_lv5) eaten_lv5 = platforms_enemy.MovingEnemy(platforms_enemy.dark_bat) eaten_lv5.rect.x = 1250 eaten_lv5.rect.y = 300 eaten_lv5.boundary_top = 300 eaten_lv5.boundary_bottom = 500 eaten_lv5.change_y = 5 eaten_lv5.player = self.player eaten_lv5.level = self self.enemy_list_lv5.add(eaten_lv5) eaten_lv5 = platforms_enemy.MovingEnemy(platforms_enemy.dark_bat) eaten_lv5.rect.x = 1538 eaten_lv5.rect.y = 190 eaten_lv5.boundary_top = 30 eaten_lv5.boundary_bottom = 300 eaten_lv5.change_y = 4 eaten_lv5.player = self.player eaten_lv5.level = self self.enemy_list_lv5.add(eaten_lv5) eaten_lv5 = platforms_enemy.MovingEnemy(platforms_enemy.dark_bat) eaten_lv5.rect.x = 1800 eaten_lv5.rect.y = 190 eaten_lv5.boundary_top = 30 eaten_lv5.boundary_bottom = 300 eaten_lv5.change_y = 4 eaten_lv5.player = self.player eaten_lv5.level = self self.enemy_list_lv5.add(eaten_lv5) eaten_lv5 = platforms_enemy.MovingEnemy(platforms_enemy.skull_ghost) eaten_lv5.rect.x = 1830 eaten_lv5.rect.y = 250 eaten_lv5.boundary_left = 1830 eaten_lv5.boundary_right = 1900 eaten_lv5.change_x = 4 eaten_lv5.player = self.player eaten_lv5.level = self self.enemy_list_lv5.add(eaten_lv5) eaten_lv5 = platforms_enemy.MovingEnemy(platforms_enemy.skull_ghost) eaten_lv5.rect.x = 1850 eaten_lv5.rect.y = 250 eaten_lv5.boundary_left = 1850 eaten_lv5.boundary_right = 1930 eaten_lv5.change_x = 3 eaten_lv5.player = self.player eaten_lv5.level = self self.enemy_list_lv5.add(eaten_lv5) special_eaten_TI = platforms_special_enemy.MovingEnemySpecial( platforms_special_enemy.big_ogre_ti) special_eaten_TI.rect.x = 1185 special_eaten_TI.rect.y = 70 special_eaten_TI.boundary_left = 1185 special_eaten_TI.boundary_right = 1400 special_eaten_TI.change_x = 5 special_eaten_TI.player = self.player special_eaten_TI.level = self self.special_enemy_list_TI.add(special_eaten_TI)