Advertisement
Guest User

Untitled

a guest
Apr 22nd, 2019
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. import play
  2.  
  3. @play.when_any_key_pressed
  4. def do(key):
  5. text = play.new_text(':(', y=play.screen.bottom)
  6. text.start_physics(x_speed=play.random_number(-20,20), y_speed=100, bounciness=.3)
  7.  
  8. play.start_program()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement