Commit 7a8a9e60 by BellCodeEditor

auto save

parent 03bead7a
Showing with 24 additions and 2 deletions
import pygame
# 初始化pygame,为使用pygame做准备
from pygame import locals
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))
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