Commit fc3d9243 by BellCodeEditor

save project

parent fbd52a8c
Showing with 13 additions and 9 deletions
import pygame
# 初始化pygame,为使用pygame做准备
pygame.init()
# 创建一个窗口
import pygame
from pygame import locals
pygame.init()
screen=pygame.display.set_mode((660,660))
screen=pygame.display.set_mode((660,480))
b=pygame.image.load("bg.png")
a=pygame.image.load("right.png")
c=pygame.image.load("apple.png")
d=pygame.image.load('body.png')
while True:
for event in pygame.event.get():
if event.type==locals.QUIT:
exit()
\ No newline at end of file
exit()
pygame.display.update()
screen.blit(b,(0,0))
screen.blit(a,(360,360))
screen.blit(c,(210,210))
screen.blit(d,(330,360))
screen.blit(d,(300,360))
screen.blit(d,(300,330))
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