Commit 8c492e33 by BellCodeEditor

auto save

parent 63ab9a34
Showing with 18 additions and 5 deletions
import pygame
from pygame import locals
# 初始化pygame,为使用pygame做准备
pygame.init()
# 创建一个窗口
size=(660,480)
pygame.display.set_mode(size)
screen = pygame.display.set_mode(size)
background = pygame.image.load('bg.png')
right = pygame.image.load('right.png')
food = pygame.image.load('apple.png')
food = pygame.image.load('body.png')
while True:
for event in pygame.event.get():
\ No newline at end of file
for event in pygame.event.get():
if event.trype == locals.QUIT:
exit()
scree.blit(background(0,0))
scree.blit(right(240,120))
scree.blit(food(210,120))
scree.blit(food(0,0))
scree.blit(food(0,0))
scree.blit(food(0,0))
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