Change some font & comment out one line code which is useless
This commit is contained in:
parent
059d1cf3b6
commit
e968f18a25
4
draw.py
4
draw.py
@ -5,7 +5,7 @@ def drawUserList(nowUserList,screen):
|
|||||||
listSTR = nowUserList[7:]
|
listSTR = nowUserList[7:]
|
||||||
|
|
||||||
listJSON = json.loads(listSTR)
|
listJSON = json.loads(listSTR)
|
||||||
print(listJSON)
|
#print(listJSON)
|
||||||
# [['127.0.0.1', 52362], ['127.0.0.1', 52370]]
|
# [['127.0.0.1', 52362], ['127.0.0.1', 52370]]
|
||||||
# [{'name': ['127.0.0.1', 55888], 'score': 0}, {'name': ['127.0.0.1', 55900], 'score': 0}]
|
# [{'name': ['127.0.0.1', 55888], 'score': 0}, {'name': ['127.0.0.1', 55900], 'score': 0}]
|
||||||
#print(listJSON)
|
#print(listJSON)
|
||||||
@ -17,7 +17,7 @@ def drawUserList(nowUserList,screen):
|
|||||||
pgStringVar = pygame.font.Font(None,25).render(str(sockName['name']),False,(0,0,0))# 文字物件
|
pgStringVar = pygame.font.Font(None,25).render(str(sockName['name']),False,(0,0,0))# 文字物件
|
||||||
screen.blit(pgStringVar,(870,y+10))# draw font
|
screen.blit(pgStringVar,(870,y+10))# draw font
|
||||||
|
|
||||||
pgStringVar = pygame.font.Font(None,25).render(str(sockName['score']),False,(255,0,0))# 文字物件
|
pgStringVar = pygame.font.Font(None,40).render(str(sockName['score']),False,(255,0,0))# 文字物件
|
||||||
screen.blit(pgStringVar,(860,y+10))# draw font
|
screen.blit(pgStringVar,(860,y+10))# draw font
|
||||||
|
|
||||||
pygame.display.update()
|
pygame.display.update()
|
||||||
|
|||||||
4
main.py
4
main.py
@ -240,7 +240,7 @@ class Client:
|
|||||||
|
|
||||||
## SET PYGAME
|
## SET PYGAME
|
||||||
pygame.init()
|
pygame.init()
|
||||||
pygame.display.set_caption('Mouse Example')
|
pygame.display.set_caption('Draw Think')
|
||||||
size= [1080, 480]
|
size= [1080, 480]
|
||||||
screen= pygame.display.set_mode(size)
|
screen= pygame.display.set_mode(size)
|
||||||
|
|
||||||
@ -248,7 +248,7 @@ class Client:
|
|||||||
continueFlag = False
|
continueFlag = False
|
||||||
while not continueFlag:
|
while not continueFlag:
|
||||||
screen.fill((255, 255, 255))
|
screen.fill((255, 255, 255))
|
||||||
pgStringVar = pygame.font.Font(None,25).render("Please wait...",False,(0,0,0))# 文字物件
|
pgStringVar = pygame.font.Font(None,40).render("Please wait...",False,(0,0,0))# 文字物件
|
||||||
screen.blit(pgStringVar,(500,240))# draw font
|
screen.blit(pgStringVar,(500,240))# draw font
|
||||||
pygame.display.update()
|
pygame.display.update()
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user