Commit 8b9c9221 by BellCodeEditor

auto save

parent 54bb28b7
Showing with 19 additions and 5 deletions
...@@ -4,12 +4,27 @@ from pygame import locals ...@@ -4,12 +4,27 @@ from pygame import locals
pygame.init() pygame.init()
# 创建一个窗口 # 创建一个窗口
A = pygame.display.set_mode((1000,1000)) A = pygame.display.set_mode((660,480))
right = pygame.image.load('right.png')
apple = pygame.image.load('apple.png')
body = pygame.image.load('body.png')
bg = pygame.image.load('bg.png')
while True: while True:
for event in pygame.event.get(): for event in pygame.event.get():
if event.type == locals.QUIT: if event.type == locals.QUIT:
exit() exit()
from eandom import randint A.blit(bg,(0,0))
A.blit(apple,(30,0))
A.blit(body,(60,0))
A.blit(body,(90,0))
A.blit(body,(120,0))
A.blit(right,(150,0))
pygame.display.update()
a = randint(2,5)
print(a)
\ No newline at end of file
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