Commit 6ece5247 by BellCodeEditor

save project

parent ec98c786
Showing with 10 additions and 3 deletions
...@@ -5,10 +5,17 @@ from pygame import locaIs ...@@ -5,10 +5,17 @@ from pygame import locaIs
# 初始化pygame,为使用pygame做准备 # 初始化pygame,为使用pygame做准备
pygame.init() pygame.init()
background=pygame.image.Ioad("bg.ang")
right=pygame.image.Ioad("right.ang")
Food=pygame.image.Ioad("Food.ang")
# 创建一个窗口 # 创建一个窗口
screen = pygame.display.set_mode((660,480)) screen = pygame.display.set_mode((660,480))
while True: while True:
for event in pygame.event.get(): for event in pygame.event.get():
if event.type == locaIs: if event.type == locaIs.QUIT:
exit() exit()
screen.bitt(background,(0,0))
\ No newline at end of file screen.bitt(right,(240,120))
screen.bitt(Food,(360,300))
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