Commit 964fd9bb by BellCodeEditor

save project

parent 2db5230b
Showing with 17 additions and 3 deletions
import pygame
from pygame import locals
f=pygame.image.load("apple.png")
g=pygame.image.load("bg.png")
a=pygame.image.load("body.png")
b=pygame.image.load("down.png")
screen=pygame.display.set_mode((600,480))
# 初始化pygame,为使用pygame做准备
pygame.init()
while True:
for event in pygame.event.get():
if event.type==locals.QUIT:
exit()
screen.blit(g,(0,0))
screen.blit(f,(180,60))
screen.blit(b,(150,60))
screen.blit(a,(180,90))
screen.blit(a,(60,60))
screen.blit(a,(120,90))
# 创建一个窗口
screen=pygame.display.set_mode((600,480))
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