Commit c538a25d by BellCodeEditor

save project

parent 0ea4c8d6
Showing with 11 additions and 0 deletions
......@@ -4,4 +4,14 @@ import pygame
pygame.init()
# 创建一个窗口
bg=pygame.image.load("bg.png")
right=pygame.image.load("right.png")
food=pygame.image.load("apple.png")
screen=pygame.display.set_mode((600,800))
while True:
for event in pygame.event.gat():
if event.type==locals.__annotations__.QUIT:
exit()
screen.blit(bg,(0,0))
screen.blit(right,(2400,300))
screen.
\ 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