Commit 3ee76db8 by BellCodeEditor

save project

parent e5be014b
Showing with 20 additions and 5 deletions
import pygame import pygame
from pygame import locals
# 初始化pygame,为使用pygame做准备 # 初始化pygame,为使用pygame做准备
pygame.init() pygame.init()
...@@ -9,10 +9,24 @@ while True: ...@@ -9,10 +9,24 @@ while True:
for event in pygame.event.get(): for event in pygame.event.get():
if event.type==locals.QUIT: if event.type==locals.QUIT:
exit() exit()
pygame.image.lood(img) blschround=pygame.image.load("bg.png")
surface.blit(210,120) right=pygame.image.load("right.png")
surface.blit(180,120) apple=pygame.image.load("apple.png")
surface.blit(180,90) body1=pygame.image.load("body.png")
body2=pygame.image.load("body.png")
body3=pygame.image.load("body.png")
screen.blit(blschround,(0,0))
screen.blit(right,(240,120))
screen.blit(apple,(330,219))
screen.blit(body1,(210,120))
screen.blit(body2,(180,120))
screen.blit(body3,(180,90))
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