Commit 5d7e5148 by BellCodeEditor

save project

parent 0c1da90d
Showing with 24 additions and 3 deletions
import pygame import pygame
from
# 初始化pygame,为使用pygame做准备 # 初始化pygame,为使用pygame做准备
pygame.init() pygame.init()
# 创建一个窗口 FPSCLOCE = pygame.time.Clock() pygame时钟,控制游戏速度(频数)
??
\ No newline at end of file screen=pygame.display.set_mode((660,480),0,32)
background = pygame.image.load('bg.png')
right = pygame.image.load('right.png')
food = pygame.image.load('apple.png')
body = pygame.image.load('body.png')
left = pygame.image.load('left.png')
up= pygame.image.load('up.png')
down = pygame.image.load('down.png')
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