Commit 5fe2519f by BellCodeEditor

save project

parent cf7b2e9c
Showing with 11 additions and 6 deletions
......@@ -2,10 +2,15 @@ import pygame
from pygame import locals
# 初始化pygame,为使用pygame做准备
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:
for a in pygame.a.get():
if a.type==pygame.QUTI
exit
\ No newline at end of file
for AA in pygame.event.get():
if AA.type==locals.QUIT:
exit()
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