Commit ff32bb35 by BellCodeEditor

save project

parent 47789b53
Showing with 5 additions and 0 deletions
......@@ -12,6 +12,7 @@ center=[2,6]
curr_shapeI=[(0,0),(0,1),(0,2),(0,3)]
curr_shapeT=[(0,0),(0,-1),(0,1),(1,0)]
# 创建窗口
screen = pygame.display.set_mode((460, 500))
pygame.display.set_caption("俄罗斯方块")
......@@ -21,9 +22,13 @@ background = pygame.image.load('bg.png')
font = pygame.font.Font('STKAITI.TTF', 60) # 字体
while True:
for event in pygame.event.get():
if event.type == locals.QUIT:
exit()
if event.type==locals.KEYDOWN:
if event.key==locals.K_LEFT:
if center[1]>1:
......
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