Commit 38706529 by BellCodeEditor

auto save

parent eaf8212a
Showing with 16 additions and 3 deletions
......@@ -2,10 +2,23 @@ import pygame
from pygame import locals
# 初始化pygame,为使用pygame做准备
pygame.init()
backgroung = pygame.image.load('bg.png')
# 创建一个窗口
backgroung1 = pygame.image.load('right.png')
backgroung2 = pygame.image.load('body.png')
backgroung3 = pygame.image.load('apple.png')
screen = pygame.display.set_mode((660,480))
while True:
for event in pygame.event.get():
if event.type==locals.QUIT:
exit()
\ No newline at end of file
exit()
screen.blit(backgroung,(0,0))
screen.blit(backgroung1,(300,120))
screen.blit(backgroung2,(270,120))
screen.blit(backgroung2,(270,150))
screen.blit(backgroung2,(270,180))
screen.blit(backgroung2,(270,210))
screen.blit(backgroung2,(270,240))
scred'd'den.blit(backgroung2,(270,270))
screen.blit(backgroung3,(210,330))
pygame.display.update()
\ No newline at end of file
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