Commit 6947d266 by BellCodeEditor

save project

parent 44d2b303
Showing with 3 additions and 6 deletions
...@@ -2,15 +2,13 @@ import pygame ...@@ -2,15 +2,13 @@ import pygame
from pygame import locals from pygame import locals
# 初始化pygame,为使用pygame做准备 # 初始化pygame,为使用pygame做准备
pygame.init() pygame.init()
# 创建一个窗口 # 创建一个窗口
pygame.image.load(apple.peng)
pygame.image.load(bg.peng)
pygame.image.load(body.peng)
screen=pygame.display.set_mode((660,400)) screen=pygame.display.set_mode((660,400))
while True: while True:
for event in pygame.event.get(): for event in pygame.event.get():
if event.type==locals.QUIT: if event.type==locals.QUIT:
exit() exit()
screen.blit()
screen.blit(right,(240,120)) screen.blit(right,(240,120))
\ 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