Commit 4b866ed3 by BellCodeEditor

auto save

parent 7a8a9e60
Showing with 2 additions and 24 deletions
import pygame import pygame
from pygame import locals # 初始化pygame,为使用pygame做准备
pygame.init() pygame.init()
bb=pygame.image.load("bg.png") # 创建一个窗口\
rr=pygame.image.load("right.png")
ff=pygame.image.load("apple.png")
screen = pygame.display.set_mode((660,480)) screen = pygame.display.set_mode((660,480))
while True:
for event in pygame.event.get():
# print(event)
if event.type == locals.QUIT:
exit()
screen.blit(bb,(0,0))
screen.blit(rr,(300,150))
screen.blit(ff,(300,210))
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