![]() encode ( make_pos ( pos ))) reply = "" while True : try : data = read_pos ( conn. split ( "," ) return int ( str ), int ( str ) def make_pos ( tup ): return str ( tup ) + "," + str ( tup ) pos = def threaded_client ( conn, player ): conn. listen ( 2 ) print ( "Waiting for a connection, Server Started" ) def read_pos ( str ): str = str. Import socket from _thread import * import sys server = "YOUR LOCAL IPV4" port = 5555 s = socket. move () redrawWindow ( win, p, p2 ) main () network.py update () def main (): run = True n = Network () startPos = read_pos ( n. split ( "," ) return int ( str ), int ( str ) def make_pos ( tup ): return str ( tup ) + "," + str ( tup ) def redrawWindow ( win, player, player2 ): win. height ) def read_pos ( str ): str = str. set_caption ( "Client" ) clientNumber = 0 class Player (): def _init_ ( self, x, y, width, height, color ): self. ![]() Import pygame from network import Network width = 500 height = 500 win = pygame.
0 Comments
Leave a Reply. |