Commit e6b38e5e by BellCodeEditor

auto save

parent a3134bbf
Showing with 2 additions and 2 deletions
import pygame# 初始化pygame,为使用pygame做准备 import pygame# 初始化pygame,为使用pygame做准备
from pygame import locals from pygame import locals
pygame.init()# 创建一个窗口 pygame.init()
# 创建一个窗口
screen = pygame.display.set_mode((660,480)) screen = pygame.display.set_mode((660,480))
pygame.event.get()
background = pygame.image.load("bg.png") background = pygame.image.load("bg.png")
right = pygame.image.load("right.png") right = pygame.image.load("right.png")
food = pygame.image.load("apple.png") food = pygame.image.load("apple.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