Commit 475a8461 by BellCodeEditor

auto save

parent 4750d188
Showing with 4 additions and 18 deletions
import pygame from pygame.base import * import pygame
# 初始化pygame,为使用pygame做准备 # 初始化pygame,为使用pygame做准备
pygame.init() pygame.init()
# 创建一个窗口 # 创建一个窗口
screen=pygame.display.set_mode((660,480)) screen=pygame.display.set_mode((660,480))
bj=pygame.image.load(bg.png) \ No newline at end of file
st=pygame.image.load(right.png)
pg=pygame.image.load(apple.png)
sdst=pygame.image.load(body.png)
while True:
for event in pygame.event.get():
if event.type==locals.QULT:
exit()
screen.bilt(bj,(0,0))
screen.blit(st,(240,120))
screen.blit(sdst,(210,120))
screen.blit(sdst,(180,120))
screen.blit(sdst,(180,90))
screen.blit(pg,(360,300))
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