Commit 56f00d1d by BellCodeEditor

save project

parent 95d50fa4
Showing with 18 additions and 4 deletions
import pygame import pygame from pygame.base import *
# 初始化pygame,为使用pygame做准备 # 初始化pygame,为使用pygame做准备
pygame.init() pygame.init()
# 创建一个窗口 # 创建一个窗口
screen=pygame.display.set_mode((660,480)) screen=pygame.display.set_mode((660,480))
\ No newline at end of file bj=pygame.image.load(bg.png)
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