Commit 0ca946ce by BellCodeEditor

auto save

parent 7a53189e

2.05 KB | W: | H:

165 Bytes | W: | H:

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

22.5 KB | W: | H:

26 KB | W: | H:

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

1.4 KB | W: | H:

266 Bytes | W: | H:

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

2.01 KB | W: | H:

178 Bytes | W: | H:

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

2.07 KB | W: | H:

178 Bytes | W: | H:

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

2.05 KB | W: | H:

178 Bytes | W: | H:

right.png
right.png
right.png
right.png
  • 2-up
  • Swipe
  • Onion skin
import pygame
from pygame import locals
# 初始化pygame,为使用pygame做准备
pygame.init()
# 创建一个窗口
screen = pygame.display.set_mode((660,480))
back = pygame.image.load('bg.png')
head = pygame.image.load('right.png')
body = pygame.image.load('body.png')
food = pygame.image.load('apple.png')
while True:
for event in pygame.event.get():
if event.type == 12:
exit()
screen.blit(back,(0,0))
screen.blit(head,(240,120))
screen.blit(body,(210,120))
screen.blit(body,(180,120))
screen.blit(body,(180,90))
screen.blit(food,(360,330))
pygame.display.update()
\ No newline at end of file
screen = pygame.display.set_mode((858,624))
\ No newline at end of file

2.05 KB | W: | H:

178 Bytes | W: | H:

up.png
up.png
up.png
up.png
  • 2-up
  • Swipe
  • Onion skin
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