Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if page == "intro":
- if mb[0] == 1 and instructRect.collidepoint(mx,my):
- page = "instructions"
- if mb[0] == 1 and playRect.collidepoint(mx,my):
- page = "main"
- if page == "main":
- screen.blit(background,(0,0))
- border=Rect(100,50,600,400)
- square=Rect(100,50,600,400)
- draw.rect(screen,white,border,5)
- draw.rect(screen,pink,square)
- # grid
- for y in range(50,450,100):
- grid=draw.line(screen,white,(100,y),(700,y),5)
- for x in range(100,700,100):
- grid=draw.line(screen,white,(x,50),(x,450),5)
- for x in range(6):
- for y in range(4):
- p=board[x][y]
- screen.blit(pics[p],(x*100+100,y*100+50))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement