def enter(): global GAME_STATE, image1, image2, image3, font, _BG, _WAND, select_witch, game_data, P_NUM, select_imotion global recv_thread, recv_thread_isRun, recv_thread2, recv_thread2_isRun, image_ready, image_select, readystate, exit_state global image_emotion, image_emotion2, image_emotion3, image_emotion4, image_ready_state, bgm image1 = load_image('Resource\Image_Player.png') image2 = load_image('Resource\Image_Player2.png') image3 = load_image('Resource\Image_Player3.png') image_ready = load_image('Resource\Image_ready.png') image_select = load_image('Resource\Image_select.png') image_emotion = load_image('Resource\emotion_hello.png') image_emotion2 = load_image('Resource\emotion_smile.png') image_emotion3 = load_image('Resource\emotion_wait.png') image_emotion4 = load_image('Resource\emotion_go.png') image_ready_state = load_image('Resource\Image_ready_state.png') GAME_STATE = 0 recv_thread_isRun = 0 font = load_font('Resource\ENCR10B.TTF') _BG = C_SellectBG() _WAND = Wand() select_witch = 0 select_imotion = 0 P_NUM = 0 readystate = False exit_state = False game_data = C_Lobby_state.game_data
def enter(): global image, font, _WAND, bgm font = load_font('Resource\ENCR10B.TTF') _WAND = Wand() bgm = load_music('Resource\openning.mp3') bgm.set_volume(64) bgm.play(1) image = load_image('Resource\Image_GameTitle.png')
def enter(): global image1,image2,image3, font, _BG, _WAND, select_witch image1 = load_image('..\Player\Image_Player.png') image2 = load_image('..\Player\Image_Player2.png') image3 = load_image('..\Player\Image_Player3.png') font = load_font('ENCR10B.TTF') _BG = C_SellectBG() _WAND = Wand() select_witch = 0
def enter(): global GAME_STATE, image1, image2, image3, font, _BG, _WAND, select_witch, game_data, PLAYER_NUM global recv_thread, recv_thread_isRun, recv_thread2, recv_thread2_isRun image1 = load_image('..\Player\Image_Player.png') image2 = load_image('..\Player\Image_Player2.png') image3 = load_image('..\Player\Image_Player3.png') GAME_STATE = 0 recv_thread_isRun = 0 font = load_font('ENCR10B.TTF') _BG = C_SellectBG() _WAND = Wand() select_witch = 0 PLAYER_NUM = 0 game_data = C_Lobby_state.game_data
def enter(): global _BG, _WAND, font, game_data, selection_image font = load_font('..\ENCR10B.TTF') _BG = C_LobbyBG() _WAND = Wand() selection_image = load_image('..\Background\Image_Lobby_Select.png') game_data = C_Game_data.GameData tcp_controller = TcpContoller() client_sock = tcp_controller.tcp_client_init() game_data.client_socket = client_sock packed_player_number = client_sock.recv(DataStruct.integer_size) player_number = DataStruct.unpack_integer(packed_player_number) game_data.player_number = player_number reset_lobby()
def enter(): global _BG, _WAND, font, game_data, selection_image, room_is_full_image, game_is_started_image, bgm font = load_font('Resource\ENCR10B.TTF') _BG = C_LobbyBG() _WAND = Wand() selection_image = load_image('Resource\Image_Lobby_Select.png') room_is_full_image = load_image('Resource\Image_Room_full.png') game_is_started_image = load_image('Resource\Image_Room_Started.png') bgm = load_music('Resource\BGM.mp3') bgm.set_volume(64) bgm.repeat_play() game_data = C_Game_data.GameData tcp_controller = TcpContoller() client_sock = tcp_controller.tcp_client_init() game_data.client_socket = client_sock packed_player_number = client_sock.recv(DataStruct.integer_size) player_number = DataStruct.unpack_integer(packed_player_number) game_data.player_number = player_number reset_lobby()
def enter(): global image, font, _WAND font = load_font('..\ENCR10B.TTF') _WAND = Wand() image = load_image('..\State\Image_GameTitle.png')