Commit c97e15e7 by BellCodeEditor

save project

parent 15287724
Showing with 20 additions and 0 deletions
......@@ -2,10 +2,30 @@ import pygame
# 初始化pygame,为使用pygame做准备
pygame.init()
background=pygame.image.load("be.png")
food=pygame.image.load("food.png")
body=pygame.image.load("body.png")
right=pygame.image.load("right.png")
# 创建一个窗口
screen=pygame.display.set_mode((660,480))
while True:
for event in pygame.event.get():
if event.type == locals.QUIT:
exit()
screen.blit(background,(0,0))
screen.blit(,(0,0))
screen.blit(background,(0,0))
screen.blit(background,(0,0))
screen.blit(background,(0,0))
screen.blit(background,(0,0))
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