Kasante95

handle_click_with_condition_else

Mar 30th, 2023
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.15 KB | None | 0 0
  1. def on_mouse_down(pos):
  2.     if apple.collidepoint(pos):
  3.         print("Good shot!")
  4.         place_apple()
  5.     else:
  6.         print("You missed!")
  7.         quit()
Advertisement
Add Comment
Please, Sign In to add comment