Commit 248fc714 by BellCodeEditor

save project

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