Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import play
- import pygame
- from random import randint, choice
- pygame.mixer_music.load('hello.mp3')
- pygame.mixer_music.play()
- play.set_backdrop('light green')
- hello_txt = play.new_text(words='Catch 30 Eggs!', x=0, y=250)
- basket = play.new_image(image='basket.png', x=0, y=-200, size=20)
- result = play.new_text(words='', x=0, y=0, font_size=100)
- score = play.new_text(words='0', x=300, y=250, color='yellow')
- score.num = 0
- lives = play.new_text(words='5', x=-300, y=250, color='red')
- lives.num = 5
- game_end = False
- color = []
- @play.when_program_starts
- def start():
- pass
- @play.repeat_forever
- async def movement():
- pass
- async def spawn_egg():
- pass
- @play.repeat_forever
- async def egg1():
- pass
- @play.repeat_forever
- async def egg2():
- pass
- @play.repeat_forever
- async def game_end_check():
- pass
- play.start_program()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement