Advertisement
Guest User

Untitled

a guest
Apr 18th, 2014
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. player1.pendown()
  2. player1.forward(50)
  3. player2.pendown()
  4. player2.forward(50)
  5.  
  6. def advance_state_machine():
  7. global state_num
  8. if state_num == 0:
  9. tess.forward(70)
  10. tess.fillcolor("red")
  11. state_num = 1
  12. else:
  13. tess.back(70)
  14. tess.fillcolor("green")
  15. state_num = 0
  16. player1.pendown()
  17. player1.forward(50)
  18. player2.pendown()
  19. player2.forward(50)
  20.  
  21.  
  22. wn.onkey(advance_state_machine, "space")
  23.  
  24. wn.listen()
  25. wn.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement