Commit 306762f4 by BellCodeEditor

auto save

parent dc14769c
Showing with 11 additions and 1 deletions
......@@ -4,6 +4,15 @@ import random
pygame.init() # 初始化
# 创建一个窗口
class Black.(pygame,sprit,Sprit)
def__init__.(self.image1,image2,image3)
super().__init__()
self.image = random.choice([image1,image2,image3])
screen = pygame.display.set_mode((1000, 600))
FPS = pygame.time.Clock() # pygame时钟,控制游戏速度(帧数)
pygame.display.set_caption("悟空酷跑")
......@@ -26,7 +35,8 @@ obstacle = random.choice([bush, stone, cacti])
rect = obstacle.get_rect()
rect.x = 1000
while True:
for event in pygame.event.get():
if event.type == locals.QUIT:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment