Commit 28a7c1df by BellCodeEditor

save project

parent a346133f
Showing with 16 additions and 2 deletions
...@@ -4,4 +4,18 @@ import pygame ...@@ -4,4 +4,18 @@ import pygame
pygame.init() pygame.init()
# 创建一个窗口 # 创建一个窗口
screen=pygame.display.set_mode((900,600)) screen=pygame.display.set_mode((800,600))
\ No newline at end of file bg=pygame.image.load("bg.png")
apple=pygame.image.load("apple.png")
right=pygame.image.load("right.png")
body=pygame.image.load("body.png")
while True:
for event in pygame.event.get():
if event.type == pygame.QUIT:
exit()
screen.blit(bg,(0,0))
screen.blit(apple,(330,150))
screen.blit(right,(300,150))
screen.blit(body,(270,150))
screen.blit(body,(240,150))
pygame.display.update()
\ 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