Commit aba523a4 by BellCodeEditor

save project

parent 0f8a46bb
Showing with 12 additions and 6 deletions
import pygame
# 初始化pygame,为使用pygame做准备
pygame.init()
# 创建一个窗口
sb=pygame.display.set_mode((800,600))
\ No newline at end of file
sc=pygame.display.set_mode((800,600))
while True:
for i in pygame.event.get():
if i.type == pygame.QUIT:
exit()
sc.blit(pygame.image.load('bg.png'),(0,0))
sc.blit(pygame.image.load('left.png'),(240,90))
sc.blit(pygame.image.load('body.png'),(210,90))
sc.blit(pygame.image.load('body.png'),(180,90))
sc.blit(pygame.image.load('apple.png'),(300,90))
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