Commit 333d22d7 by BellCodeEditor

auto save

parent 5719df75
Showing with 2 additions and 22 deletions
import pygame print(1)
\ No newline at end of file
# 初始化pygame,为使用pygame做准备
pygame.init()
FPSCLOCK = pygame.time.Clock()
# 创建一个窗口
background=pygame.image.load('bg.png')
right = pygame.image.load('right.png')
left = pygame.image.load('left.png')
up = pygame.image.load('up.png')
down = pygame.image.load('down`.png')
food = pygame.image.load('apple.png')
screen=pygame.display.set_mode((660,480))
while True:
screen.blit(background,(0,0))
screen.blit(right,(240,120))
screen.blit(food,(360,300))
pygame.display.update()
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