Commit 16376dab by BellCodeEditor

save project

parent 4c7cc7c7
Showing with 11 additions and 3 deletions
......@@ -2,10 +2,19 @@ import pygame
from pygame import locals
# 初始化pygame,为使用pygame做准备
pygame.init()
zhuang=pygame.image.load('apple.png')
# 创建一个窗口
qian=pygame.image.load('right.png')
# 创建一个窗口
background=pygame.image.load('bg.png')
# 创建一个窗口
zhuangqian=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()
zhuangqian.blit(background,(0,0))
zhuangqian.blit(qian,(240,120))
zhuangqian.blit(zhuang,(300,330))
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