def anim_highlight_box(top,left,width,height):
pygame.draw.rect(DISPLAYSURF, HIGHLIGHTCOLOR, (left - 2, top - 2, width + 4, height + 4), 1)
pygame.display.update()
def anim_highlight_box_cover(top,left,width,height):
pygame.draw.rect(DISPLAYSURF, BLACK, (left - 2, top - 2, width + 4, height + 4), 1)
pygame.display.update()
CREATEGAME_SURF, CREATEGAME_RECT = makeText('Create Game', TEXTCOLOR, TILECOLOR, WINDOWWIDTH - 120, WINDOWHEIGHT - 90,BASICFONT)
JOINGAME_SURF, JOINGAME_RECT = makeText('Join Game', TEXTCOLOR, TILECOLOR, WINDOWWIDTH - 120, WINDOWHEIGHT - 60,BASICFONT)
YOUWIN_SURF,YOUWIN_RECT = makeText('You win', WINFONTCOLOR, TILECOLOR, BOARDLEFT + BOARDWIDTH/2 , BOARDTOP + BOARDHEIGHT/2,WINFONT)
YOUSUCK_SURF,YOUSUCK_RECT = makeText('You suck', WINFONTCOLOR, TILECOLOR, BOARDLEFT + BOARDWIDTH/2 , BOARDTOP + BOARDHEIGHT/2,WINFONT)
JOINSUCC_SURF,JOINSUCC_RECT = makeText('Join success', TEXTCOLOR, TILECOLOR, BOARDLEFT + BOARDWIDTH/2 , BOARDTOP + BOARDHEIGHT/2,BASICFONT)
CREATESUCC_SURF,CREATESUCC_RECT = makeText('Create success', TEXTCOLOR, TILECOLOR, BOARDLEFT + BOARDWIDTH/2 , BOARDTOP + BOARDHEIGHT/2,BASICFONT)
BEGINGAME_SURF,BEGINGAME_RECT = makeText('Game begin', TEXTCOLOR, TILECOLOR, BOARDLEFT + BOARDWIDTH/2 , BOARDTOP + BOARDHEIGHT/2,BASICFONT)