Commit df965498 by BellCodeEditor

auto save

parent 227758cc
Showing with 3 additions and 24 deletions
import pygame
from pygame import locals
# 初始化pygame,为使用pygame做准备
pygame.init()
# 创建一个窗口
screen=pygame.display.set_mode((660,480))
a=pygame.image.load("bg.png")
b=pygame.image.load('body.png')
c=pygame.image.load('right.png')
d=pygame.image.load('apple.png')
while True :
for event in pygame.event.get():
if event.type==locals.QUIT:
exit
screen.blit(a,(0,0))
screen.blit(b,(210,120))
screen.blit(b,(180,120))
screen.blit(b,(180,90))
screen.blit(d,(180,210))
screen.blit(c,(180,150))
pygame.display.update()
wanghao=100
input(wanghao)
\ 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