Commit fb886f79 by BellCodeEditor

save project

parent 8f50598e
Showing with 18 additions and 3 deletions
import pygame
from pygame import locals
# 初始化pygame,为使用pygame做准备
pygame.init()
b=pygame.image.load('bg.png')
d=pygame.image.load('right.png')
g=pygame.image.load('apple.png')
f=pygame.image.load('body.png')
# 创建一个窗口
a=pygame.display.set_mode((660,480))
\ No newline at end of file
a=pygame.display.set_mode((660,480))
while True:
for i in pygame.event.get():
if i.type == locals.QUIT:
exit()
a.blit(b,(0,0))
a.blit(d,(240,120))
a.blit(g,(420,330))
a.blit(f,(210,120))
a.blit(f,(180,120))
a.blit(f,(180,90))
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