我正在试着做一个有格斗的游戏。要做到这一点,我需要循环通过某个场景,直到玩家或怪物的生命值为0或更小。因此,我设置了变量,以便在变量达到0后播放下一个场景(这是我想要循环的同一个场景)。但问题是我不知道如何命名一个场景。下面是我的代码: def whack(self, sound): x, y = self._path.next_pos() PL += 1 if se
我正在学习如何在Python中使用asciimatics。当我尝试运行以下代码时:from time import sleep
screen.print_atPython\Westhope\2.0\test.py", line 20, in <module> File "C:\Python27\lib\asciimatics\scre