def enter(): global image, title_sound open_canvas() game_framework.reset_time() image = load_image('resource/title/kpu_credit.png') title_sound = load_music('resource/Sound/title.mp3') title_sound.play()
def enter(): global image , logo_sound open_canvas(1024,600) game_framework.reset_time() image = load_image('Resource/State/kpu_credit.png') logo_sound = load_music("Resource/Sound/title.mp3") logo_sound.set_volume(64) logo_sound.play()
def enter(): global main_pause main_pause = False game_framework.reset_time() Create_world() Change_time_back(False) Change_speed(RUN)
def enter(): global map,pica,enemy1,dino open_canvas(800,400) game_framework.reset_time() map = Map() pica = Pica() map.set_center_object(pica) pica.set_background(map) enemy1 = Enemy()
def enter(): open_canvas() game_framework.reset_time() global weapon global member global box member = 0 weapon = 0 box = 0 create_world()
def create_world(): global mario, tile, back, dobstacle, uobstacle, gold, boss, item, ui game_framework.reset_time() mario = Mario() tile = Tile() back = BackGround() dobstacle = [DownObstacle() for i in range(dobstacle_limit)] uobstacle = [UpObstacle() for i in range(dobstacle_limit)] gold = [Gold() for i in range(gold_limit)] item = [Item() for i in range(item_limit)] boss = Boss() ui = UI()
def enter(): global gold, uobstacle, dobstacle, item open_canvas() game_framework.reset_time() create_world() for x in range(gold_limit): gold[x].Get_Num(x) for x in range(item_limit): item[x].Get_Num(x) for x in range(uobstacle_limit): uobstacle[x].Get_Num(x) for x in range(dobstacle_limit): dobstacle[x].Get_Num(x)
def enter(): global chick, sky, grass, mountain,red_bird global devil, red_birds, pink_bird, stone,dragon global life,life_items global running global current_time global coins,score global coin_bgm score = 0 chick = Chick() sky = Sky(800,600) grass = Grass(800,600) mountain = Mountain(800,600) devil = [Devil()for i in range(devil_num)] pink_bird = Pink_Bird() stone = Stone() dragon = Dragon() red_birds = [Red_Bird()for i in range(6)] life = Life() life_items = [Life_Item()for i in range(2)] coins = [Coin()for i in range(10)] for i in range(10): ran = random.randint(0,100) if i>0 : coins[i].x = coins[i-1].x+40 if(ran<33) : coins[i].y = coins[i-1].y+40 elif (ran>33 and ran<66) : coins[i].y = coins[i-1].y else : coins[i].y = coins[i-1].y-40 if coins[i].y < 80 : coins[i].y=80 if coins[i].y > 570 : coins[i].y=530 game_framework.reset_time() current_time = get_time() if coin_bgm == None: coin_bgm = load_music('coin.ogg')
def enter(): game_framework.reset_time() #open_canvas(800,600) global player,font,background,running,stage,total_time,creating,create_next_time,score,monster_number,next_time stage=1 font=load_font('./resource/ENCR10B.TTF') background=bakground_bg.BackGround() player=Player_item.Player() score=0 running = True; total_time=0.0 creating=False create_time=0.0 monster_number=2 create_next_time=0.0 pass
def enter(): global gameover_image gameover_image = load_image('resouce/image/gameover_image.png') game_framework.reset_time()
def enter(): global image open_canvas(1024,600) game_framework.reset_time() image = load_image('Resource/State/kpu_credit.png')
def enter(): open_canvas(background_width * tile_width, background_height * tile_height) game_framework.reset_time() create_world()
def enter(): game_framework.reset_time() create_world()
def enter(): global font font = load_font('ENCR10B.TTF') game_framework.reset_time() create_world()
def enter(): open_canvas(windowx,windowy) hide_cursor() game_framework.reset_time() create_world()
def enter(): open_canvas(sync = True) game_framework.reset_time() create_world()
def enter(): open_canvas(480, 272) game_framework.reset_time() create_world()
def enter(): open_canvas(800, 600) hide_cursor() game_framework.reset_time() create_world()
def enter(): global image open_canvas() game_framework.reset_time() image = load_image('resource/title/kpu_credit.png')
def enter(): #open_canvas(800, 400) game_framework.reset_time() create_world()
def enter(): open_canvas(960, 550) game_framework.reset_time() create_world()
def enter(): open_canvas(1500, 600) game_framework.reset_time() create_world()