Commit 3ee76db8 by BellCodeEditor

save project

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