Commit d9e13bc9 by BellCodeEditor

auto save

parent dfa9319b
Showing with 17 additions and 3 deletions
......@@ -2,6 +2,21 @@ import pygame
# 初始化pygame,为使用pygame做准备
pygame.init()
FPSCLOCK = pygame.time.Clock()
# 创建一个窗口
??
\ No newline at end of file
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