def enter(): global mode, kind mode = 't' kind = 1 global basic_tile_x, basic_tile_y, tile2_x, tile2_y, tri_obs_x, tri_obs_y tile_x, tile_y, tile_mode, tri_obs_x, tri_obs_y = [], [], [], [], [] global image image = load_image('basic_tile.png') global x, y, mx, my, size_x, size_y, real_x, stop size_x = 100 size_y = 100 real_x = 0 stop = True global background, speed, inspeed background = background_class.BACKGROUND() speed = 2.8 inspeed = 0 global tiles, tri_obses, delete_idx delete_idx = "tile" ReadPos() pass
def enter(): global character, background, tiles, triangle_obstacles, timer background = background_class.BACKGROUND() background.image_1 = load_image('background3.png') background.image_2 = load_image('background3.png') background.image_3 = load_image('background3.png') background.stage = 3 background.pivot_1_x, background.pivot_2_x, background.pivot_3_x = -255, 255, 765 triangle_obstacles = [] tiles = [] # character.init character = character_class.CHARACTER() character.stage = 3 character.x = WORD_END_X - 130 character.y = 0 character.GOAL_POINT = 130 character.cur_state = character_class.Reverse_Run_State global camera_x, stop, game_speed, map_stop game_speed = 700.0 camera_x = WORD_END_X - 1020 map_stop = False ReadPos() for triangle in triangle_obstacles: triangle.stage = 3 character.tiles, character.obstacles = tiles, triangle_obstacles stop = 0 game_world.add_object(background, 0) game_world.add_object(character, 1) game_world.add_objects(tiles, 1) game_world.add_objects(triangle_obstacles, 1) timer = 0.5
def enter(): global mode, kind mode = 't' kind = 1 global tile_x, tile_y, tri_obs_x, tri_obs_y tile_x, tile_y, tile_mode, tri_obs_x, tri_obs_y = [], [], [], [], [] global image image = load_image('basic_tile.png') global x, y, mx, my, size_x, size_y, camera_x, stop size_x = 100 size_y = 100 camera_x = WORD_END_X - 1020 stop = True global background, speed, inspeed background = background_class.BACKGROUND() background.image_1 = load_image('background3.png') background.image_2 = load_image('background3.png') background.image_3 = load_image('background3.png') background.pivot_1_x, background.pivot_2_x, background.pivot_3_x = -255, 255, 765 background.stage = 3 speed = 600 inspeed = 0 global tiles, tri_obses, delete_idx delete_idx = "tile" ReadPos() InputGame_SpeedORCamera_Moveing_Degree() pass
def enter(): global mode, kind mode = 't' kind = 1 global tile_x, tile_y, rect_obs_x, rect_obs_y, rect_obs_size tile_x, tile_y, rect_obs_x, rect_obs_y, rect_obs_size,rect_obs_mode = [], [], [], [], [], [] global image image = load_image('basic_tile.png') global x, y, mx, my, size_x, size_y, camera_x, stop size_x = 100 size_y = 100 camera_moving_degree_x = 0 stop = True global background, speed, inspeed background = background_class.BACKGROUND() background.image_1 = load_image('background2.png') background.image_2 = load_image('background2.png') background.image_3 = load_image('background2.png') speed = 270 inspeed = 0 global tiles, rect_obses, delete_idx delete_idx = "tile" ReadPos() pass
def enter(): global character, background, tiles, rectangle_obstacles, ufo background = background_class.BACKGROUND() background.image_1 = load_image('background2.png') background.image_2 = load_image('background2.png') background.image_3 = load_image('background2.png') background.stage = 2 tiles, rectangle_obstacles = [], [] character = character_class.CHARACTER() character.GOAL_POINT = 9903.68660381633 ufo = ufo_class.UFO() global camera_moving_degree_x, stop, game_speed, map_stop, timer game_speed = 450.0 camera_moving_degree_x = 0 map_stop = False ReadPos() character.tiles = tiles character.obstacles = rectangle_obstacles character.ufo = ufo ufo.tiles = tiles ufo.obstacles = rectangle_obstacles stop = 0 game_world.add_object(background, 0) game_world.add_object(character, 1) game_world.add_object(ufo, 1) game_world.add_objects(tiles, 1) game_world.add_objects(rectangle_obstacles, 1) timer = 0.5
def enter(): global character, background, tiles, obstacles_triangle character = character_class.CHARACTER() background = background_class.BACKGROUND() # obstacle.x, obstacle.y obstacles_triangle = [] # tile.x, tile.y, tile.size_x, tile.size_y, tile.mode # mode : 1. basic_tile 2. tile2 tiles = [] global speed, real_x, stop speed = 2.8 real_x = 0 ReadPos() stop = 0 global bgm bgm = load_music("Geometry_resource_backmusic.mp3") bgm.set_volume(64) bgm.repeat_play() pass
def enter(): global character, background, tiles, triangle_obstacles, finish_timer background = background_class.BACKGROUND() background.stage = 1 triangle_obstacles = [] tiles = [] character = character_class.CHARACTER() character.GOAL_POINT = 7190 global camera_moving_degree_x, stop, game_speed, map_stop game_speed = 350.0 camera_moving_degree_x = 0 map_stop = False ReadPos() character.tiles, character.obstacles = tiles, triangle_obstacles stop = 0 game_world.add_object(background, 0) game_world.add_object(character, 1) game_world.add_objects(tiles, 1) game_world.add_objects(triangle_obstacles, 1) finish_timer = 0.5