Commit 55ee0375 by BellCodeEditor

auto save

parent c6188a1e
Showing with 19 additions and 3 deletions
import pygame
from pygame import locals
# 初始化pygame,为使用pygame做准备
pygame.init()
bs=pygame.image.load('bg.png')
kk=pygame.image.load('right.png')
bb=pygame.image.load('apple.png')
bo=pygame.image.load('body.png')
# 创建一个窗口
??
\ No newline at end of file
screen=pygame.display.set_mode((660,480))
while True:
for i in pygame.event.get():
if i.type==locals.QUIT:
exit()
screen.blit(bs,(0,0))
screen.blit(kk,(240,150))
screen.blit(bb,(0,0))
screen.blit(bo,(210,150))
screen.blit(bo,(180,150))
screen.blit(bo,(180,120))
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