Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #начало игры
- import play
- from random import randint
- w = play.screen.width
- h = play.screen.height
- #создание объектов для внешнего интерфейса
- place1 = play.new_box(color = 'light green', x = 0, y = 0, width = 100, height = 200, border_width=5, border_color='green')
- place2 = play.new_box(color = 'light green', x = 0, y = 0, width = 100, height = 200, border_width=5, border_color='green')
- place3 = play.new_box(color = 'light green', x = 0, y = 0, width = 100, height = 200, border_width=5, border_color='green')
- button = play.new_box(color = 'yellow', x = 0, y = 0, width = 150, height = 50)
- @play.when_program_starts
- def start():
- place1.x = -200
- place2.x = 0
- place3.x = 200
- button.y = 170
- @play.repeat_forever
- def do():
- pass
- @button.when_clicked
- async def clicking():
- pass
- play.start_program()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement