): pygame.draw.rect(s, bg_color, pygame.Rect(left, top, Block.width, Block.height)) pygame.draw.rect...# 只画积木实体,不管盒子本身 if self.building[j][i]: Block.draw(s, cur_left + i...* Block.width, cur_top + j * Block.height, COLOR_BLACK, COLOR_WHITE)
def draw(self, s): ""...Block.draw(s, i * Block.width, j * Block.height, COLOR_WHITE, COLOR_BLACK) else:...Block.draw(s, i * Block.width, j * Block.height, COLOR_BLACK, COLOR_WHITE)
# -----------------------