Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import play
- import pygame
- from random import randint
- play.set_backdrop('sky blue')
- coin_sound = pygame.mixer.Sound('coin.wav')
- sea_sound = pygame.mixer.Sound('sea.ogg')
- pygame.display.set_caption('Platformer Game') # TITLE OF YOUR GAME
- score_txt = play.new_text(words='Score:', x=play.screen.right-100, y=play.screen.top-30, size=70)
- score = play.new_text(words='0', x=play.screen.right-30, y=play.screen.top-30, size=70)
- text = play.new_text(words='Tap SPACE to jump, LEFT/RIGHT to move', x=0, y=play.screen.bottom+60, size=70)
- sprite = play.new_circle(color='white', x=play.screen.left+20, y=play.screen.top-20, border_color='grey', border_width=3, radius=15)
- platforms = []
- coins = []
- sea = play.new_box(color='blue', width=play.screen.width, height=50, x=0, y=play.screen.bottom+20)
- def draw_platforms():
- pass
- def draw_coins():
- pass
- @play.when_program_starts
- def start():
- pass
- @play.repeat_forever
- async def game():
- pass
- play.start_program()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement