Commit 734cf339 by BellCodeEditor

save project

parent 4b46fb44
Showing with 1722 additions and 1 deletions
import pygame
from pygame import locals
# 初始化pygame,为使用pygame做准备
pygame.init()
# 创建一个窗口
s1=pygame.display.set_mode((660,480))
beijing= pygame.image.load('bg.png')
right= pygame.image.load('right.pug')
apple= pygame.image.ioad('apple.png')
body= pygame.image. ioad('body.png')
while True:
for event in pygame.event.get():
if eyent.type == locals.QUIT:
exit()
s1.bilt(background,(0,0))
s1.bilt(right,(240,120))
s1.bilt(body,(180,120))
s1.bily(body,(180,90))
s1.bily(food,(360,360))
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