Commit 4e20ea60 by BellCodeEditor

save project

parent a1d9b53e
Showing with 18 additions and 4 deletions
import pygame
from pygame import locals
# 初始化pygame,为使用pygame做准备
pygame.init()
pygame.imagel
# 创建一个窗口
pygame.display.set_mode((660,480))
\ No newline at end of file
screem=pygame.display.set_mode((660,480))
a1=pygame.image.load("bg.png")
a2=pygame.image.load("right.png")
a3=pygame.image.load("apple.png")
a4=pygame.image.load("body.png")
while True:
for i in pygame.event.get():
if i.type==locals.QUIT:
exit()
screem.blit(a1,(0,0))
screem.blit(a2,(240,120))
screem.blit(a3,(300,240))
screem.blit(a4,(210,120))
screem.blit(a4,(180,120))
screem.blit(a4,(180,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