Commit adaed736 by BellCodeEditor

save project

parent bb4d7f5e
Showing with 19 additions and 3 deletions
import pygame
from pygame import locals
# 初始化pygame,为使用pygame做准备
pygame.init()
b=pygame.image.load('bg.png')
c=pygame.image.load('right.png')
d=pygame.image.load('body.png')
e=pygame.image.load('apple.png')
# 创建一个窗口
a=pygame.display.set_mode((500,400))
\ No newline at end of file
a=pygame.display.set_mode((600,500))
while True:
for event in pygame.event.get():
if event.type==locals.QUIT:
exit()
a.blit(b,(0,0))
a.blit(c,(300,240))
a.blit(d,(270,240))
a.blit(d,(270,210))
a.blit(d,(240,210))
a.blit(e,(150,120))
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