梦幻背景_绿色瀑布风景dynamic background waterfall parallax

"""动态背景_绿色瀑布风景waterfall parallax,这本来是一个scratch作品,现在用Python把它做一下."""

import pygame
from pygame.locals import *

width,height = 480,360
screen = pygame.display.set_mode((width,height))
pygame.display.set_caption("动态背景_绿色瀑布风景waterfall parallax www.lixingqiu.com")

pygame.mixer.init()
pygame.mixer.music.load("The Departure - Max Richter.mp3.wav")
pygame.mixer.music.play(-1,0)

costume1 = pygame.Surface((width,height))
costume1.fill((0,102,34))

costume2 = pygame.image.load("images/costume2.png").convert_alpha()
costume2_rect = costume2.get_rect()

costume3 = pygame.image.load("images/costume3.png").convert_alpha()
costume3_rect = costume3.get_rect()

costume4 = pygame.image.load("images/costume4.png").convert_alpha()
costume4_rect = costume4.get_rect()

costume5 = pygame.image.load("images/costume5.png").convert_alpha()
costume5_rect = costume5.get_rect()

costume6 = pygame.image.load("images/costume6.png").convert_alpha()
costume6_rect = costume6.get_rect()

costume7 = pygame.image.load("images/costume7.png").convert_alpha()
costume7_rect = costume7.get_rect()
 
clock = pygame.time.Clock()
running = True

You must log in to read the rest of this article. Please log in or register as a user.