Commit 27d7d554 by BellCodeEditor

save project

parent 4b254419
Showing with 31 additions and 2 deletions

12.4 KB | W: | H:

2.68 KB | W: | H:

09daf457a600a4f6ee034a6dce468072.jpg
09daf457a600a4f6ee034a6dce468072.jpg
09daf457a600a4f6ee034a6dce468072.jpg
09daf457a600a4f6ee034a6dce468072.jpg
  • 2-up
  • Swipe
  • Onion skin
import pygame
from pygame import locals
# 初始化pygame,为使用pygame做准备
pygame.init()
screen=pygame.display.set_mode(size=(660,480))
bb=pygame.image.load('09daf457a600a4f6ee034a6dce468072.jpg')
p=pygame.image.load('apple.png')
b=pygame.image.load('bg.png')
pp=pygame.image.load('body.png')
while True:
for event in pygame.event.get():
if event.type==locals.QUIT :
exit()
# 创建一个窗口
pygame.display.set_mode(size=(660,480))
screen.blit(b,(0,0))
screen.blit(bb,(0,0))
screen.blit(p,(55,55))
screen.blit(pp,(210,120))
screen.blit(pp,(180,120))
screen.blit(pp,(180,90))
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