Commit 588c1d14 by BellCodeEditor

save project

parent 2ad4aee7
Showing with 13 additions and 3 deletions
...@@ -4,13 +4,23 @@ import pygame ...@@ -4,13 +4,23 @@ import pygame
pygame.init() pygame.init()
# 创建一个窗口 # 创建一个窗口
D=pygame.display.set_mode((800,600)) D=pygame.display.set_mode((800,600))
A=pygame.image.load('bg.png')
C=pygame.image.load('body.png')
Z=pygame.image.load("right.png")
while True: while True:
for a in pygame.event.get(): for a in pygame.event.get():
if a.type==pygame.locals.QUIT: if a.type==pygame.locals.QUIT:
exit() exit()
D.blit(A,(0,0))
D.blit(C,(10,100))
D.blit(Z,(200,50))
pygame.display.updat(D)
......
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