Skip to content

Instantly share code, notes, and snippets.

@Glench
Last active April 11, 2019 22:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Glench/011fcc0778b6224edf1081e49ec05a90 to your computer and use it in GitHub Desktop.
Save Glench/011fcc0778b6224edf1081e49ec05a90 to your computer and use it in GitHub Desktop.
import play
@play.when_any_key_pressed
def do(key):
text = play.new_text(':(', y=play.screen.bottom)
text.start_physics(x_speed=play.random_number(-20,20), y_speed=100, bounciness=.3)
play.start_program()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment