Commit 5fe2519f by BellCodeEditor

save project

parent cf7b2e9c
Showing with 11 additions and 6 deletions
...@@ -2,10 +2,15 @@ import pygame ...@@ -2,10 +2,15 @@ import pygame
from pygame import locals from pygame import locals
# 初始化pygame,为使用pygame做准备 # 初始化pygame,为使用pygame做准备
pygame.init() pygame.init()
aaaa=pygame.image.load('bg.png')
cccc=pygame.image.load('apple.png')
dddd=pygame.image.load('right.png')
# 创建一个窗口 # 创建一个窗口
screen=pygame.display.set_mode((30000,30000)) screen=pygame.display.set_mode((660,480))
while True: while True:
for a in pygame.a.get(): for AA in pygame.event.get():
if a.type==pygame.QUTI if AA.type==locals.QUIT:
exit exit()
\ No newline at end of file screen.blit(aaaa,(0,0))
screen.blit(cccc,(120,60))
screen.blit(dddd,(30,30))
\ 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