Commit f5deac4b by BellCodeEditor

auto save

parent d9f2df07
Showing with 16 additions and 8 deletions
import pygame import pygame
# 初始化pygame,为使用pygame做准备 # 初始化pygame,为使用pygame做准备
pygame.init() pygame.init()
apple=pygame.image.load("bg.png") bg=pygame.image.load("bg.png")
right=pygame.image.load("boby.pang") body=pygame.image.load("body.png")
boby=pygame.image.load("rr") apple=pygame.image.load("apple.png")
#left=pygame.image.load("left.png")
#neuropol=pygame.image.load("neuropol.png")
right=pygame.image.load("right.png")
#bg=pygame.image.load("")
# 创建一个窗口 # 创建一个窗口
screem=pygame.display.set_mode((660,480)) screem=pygame.display.set_mode((660,480))
while True: while True:
for i in pygame.eyent.get(): for i in pygame.event.get():
if i.type==pygame.QUIT: if i.type==pygame.QUIT:
exit() exit()
screem.blit(bg,(0,0)) screem.blit(bg,(0,0))
screem.blit(right) screem.blit(right,(240,120))
screem.blit() screem.blit(apple,(120,240))
screem.blit() screem.blit(body,(210,120))
screem.blit() screem.blit(body,(180,120))
screem.blit(body,(150,120))
pygame.display.update() pygame.display.update()
++ "b/\345\225\212\343\200\202py"
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