def destroy(self):
# When a sprite is destoyed move it off screen, hide it, and set state to None
# This is a workaround as there is no way to delete a sprite from memory in the turtle module.
self.hideturtle()
self.goto(10000, 10000)
self.state = None
评论列表
文章目录