Ejemplo n.º 1
0
def create_world():
    global _Bg, _Enemy1, timer, GameScore, _EBullet, _PBullet, _Life

    _Enemy1 = []
    #timer = Timer()
    GameScore = 0
    _EBullet = EBullet.get_list()
    _PBullet = PBullet.get_list()
Ejemplo n.º 2
0
def create_world():
    global _DS, _player, _Bg, _Enemy1, timer, GameScore, font, _EBullet, _PBullet, _Life, client_socket
    client_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
    client_socket.connect((SERVER_IP_ADDR, SERVER_PORT))
    _player = Player1()
    _Bg = BackGround()
    _DS = DataStruct()
    _Enemy1 = []
    _Life = Life(_player.life)
    timer = Timer()
    GameScore = 0
    font = load_font('ENCR10B.TTF')
    _EBullet = EBullet.get_list()
    _PBullet = PBullet.get_list()
Ejemplo n.º 3
0
def create_world():
    global _player, _Bg, _Enemy1, timer,GameScore, font, _EBullet, _PBullet, _Life,client_sock,tcp_controller,E_NUM, _Enemy_Data
    _Bg = BackGround()
    E_NUM =0
    _player = Player1(_Bg)
    _Enemy1 = []
    _Life = Life(_player.life)
    #timer = Timer()
    client_sock = GameData.client_socket
    #tcp_controller = TcpContoller()
    readystate = 0
    #client_sock = tcp_controller.tcp_client_init()
    t1 = threading.Thread(target=recv_thread, args=(client_sock,))
    t1.start()
    readystate = 0
    GameScore =0
    font = load_font('ENCR10B.TTF')
    _EBullet= EBullet.get_list()
    _PBullet = PBullet.get_list()