Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # (1) Import play
- import play
- # (2) Create a text sprite
- text = play.new_text(words = 'UwU', x = -250, y = 250, font = None, font_size = 40)
- # (3) Create a shape sprite
- cir = play.new_circle(color = 'green', x = -250, y = -250, radius=10, border_color='light green')
- # (4) Create a sprite from an image
- pic = play.new_image(image = 'smile.png', x = 250, y = 250, size = 60, angle = 0, transparency=100)
- # (5) One-time action at start
- @play.when_program_starts
- def start():
- pass
- #(6) object.hide() to hide something!
- #text.hide()
- #cir.hide()
- # (7) Actions that run forever...
- @play.repeat_forever
- def do():
- pass
- # (8) 🔊 RUN THE PROGRAM
- play.start_program()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement