Commit fd4d669a by BellCodeEditor

save project

parent 6d4012b7
Showing with 7 additions and 0 deletions
......@@ -4,11 +4,18 @@ import pygame
pygame.init()
# 创建一个窗口
bg=pygame.image.load("bg.png")
right=pygame.image.load("right.png")
apple=pygame.image.load("apple.png")
screen=pygame.display.set_mode((660,480))
while True:
for event in pygame.event.get():
if event.type==12:
exit()
screen.blit(bg,(0,0))
screen.blit(apple,(290,120))
screen.blit(right,(360,300))
pygame.display.update()
......
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