Commit 98f2a344 by BellCodeEditor

save project

parent d5a2f957
Showing with 4 additions and 1 deletions
......@@ -16,6 +16,7 @@ clock = pygame.time.Clock() # pygame时钟,控制游戏速度(帧数)
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:
......@@ -35,7 +36,9 @@ while True:
screen.blit(background,(0,0))
currunt_pos=[]
for cude in currunt_shape
for cube currunt_shape:
pos=(cube[0]+center[0],cube[1]+center[1])
currunt_pos.append(pos)
#绘制小方块
pygame.draw.rect(screen,(255,0,0),(120,20,20,20),0),
......
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