Commit bc868ad6 by BellCodeEditor

save project

parent b80bea60
Showing with 13 additions and 0 deletions
...@@ -3,5 +3,17 @@ import pygame ...@@ -3,5 +3,17 @@ import pygame
# 初始化pygame,为使用pygame做准备 # 初始化pygame,为使用pygame做准备
pygame.init() pygame.init()
bg=pygame.image.load('bg.png')
app=pygame.image.load('apple.png')
# 创建一个窗口 # 创建一个窗口
pygame.display.set_mode((660,480)) pygame.display.set_mode((660,480))
while True:
for
screen.blit(bg(0,0))
screen.blit(app(0,0))
screen.blit(app(620,0))
screen.blit(app(620,460))
screen.blit(app(0,460))
pygame
\ 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