Commit e2c0eae0 by BellCodeEditor

save project

parent f25f12ff
Showing with 9 additions and 5 deletions
......@@ -2,15 +2,18 @@ import pygame
from pygame import locals
# 初始化pygame,为使用pygame做准备
pygame.init()
backgroung=pygame.image.load((dg,png)
backgroung=pygame.image.load((dg,png))
backgroung=pygame.image.load((dg.png))
a=pygame.image.load((right.png))
b=pygame.image.load((body.png))
c=pygame.image.load((apple.png))
# 创建一个窗口
screen = pygame.display.set_mode((800,600))
while True:
for event in pygame.event.get():
if event.type == locals.QUIT:
exit()
screen.bilt(body,(210,120))
screen.bilt(body,(180,120))
screen.bilt(body,(180,90))
screen.bilt(a,(210,120))
screen.bilt(b,(180,120))
screen.bilt(c,(180,90))
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