Commit db7831f8 by BellCodeEditor

save project

parent 4c2b0d9b
Showing with 13 additions and 4 deletions

2.05 KB | W: | H:

2.54 KB | W: | H:

apple.png
apple.png
apple.png
apple.png
  • 2-up
  • Swipe
  • Onion skin

22.5 KB | W: | H:

942 KB | W: | H:

bg.png
bg.png
bg.png
bg.png
  • 2-up
  • Swipe
  • Onion skin

1.4 KB | W: | H:

1.43 KB | W: | H:

body.png
body.png
body.png
body.png
  • 2-up
  • Swipe
  • Onion skin
import pygame
from pygame import locals
# 初始化pygame,为使用pygame做准备
pygame.init()
a=pygame.image.load('bg.png')
yt=pygame.image.load('right.png')
food=pygame.image.load('apple.png')
# 创建一个窗口
screen=pygame.display.set_mode((660,480))
screen=pygame.display.set_mode((960,1080))
while True:
\ No newline at end of file
for event in pygame.event.get():
if event.type==locals.QUIT:
exit()
screen.blit(a,(0,0))
screen.blit(food,(240,120))
screen.blit(yt,(240,150))
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