Commit 129dd6a1 by BellCodeEditor

save project

parent 9a626d1a
Showing with 14 additions and 4 deletions
import pygame
from pygame import locals
from pygame import locals
# 初始化pygame,为使用pygame做准备
bg=pygame.image.load('bg.png')
right=pygame.image.load('right.png')
body=pygame.image.load('body.png')
apple=pygame.image.load('apple.png')
pygame.init()
pygame.display.set_mode((660,480))
screen=pygame.display.set_mode((660,480))
while True:
for a in pygame.event.get():
if a.type==locals.QUIT:
exit()
\ No newline at end of file
exit()
pygame.image.load()
screen.blit(bg,(0,0))
screen.blit(right,(210,120))
screen.blit(body,(180,120))
screen.blit(apple,(30,30))
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