我继续使用python尝试使用它,输入:当在空闲状态下运行时,会引发这个严重的错误: File "C:/Python31/TESTERLY TEST", line 1, in <module>
from livewires import gamesFile "C:\Python31\lib\site-packages\livewires<
我有一个名为score的livewires.games.Text对象,我正试图从中获取值。scores = str(self.scores)甚至是一个for循环:for item in scores:我得到的只有<livewires.games.Text有没有办法把<livewires.games.Text object at 0x1017aca58>变成int()?
for spike in self.overlapping_sprites:这两行代码对初学者来说很神奇。然而,在我的游戏中,我似乎撞到了一块砖墙。经过测试后,我找不到一个方法来使碰撞更精确!我的意思是,不是当两个精灵真正接触到它们,而是它们周围的盒子重叠的时候。那么,我怎样才能做到,这样我的精灵周围的透明区域就不算碰撞,如果它碰到了其他精灵呢?
运行pip install livewires时,我会得到以下错误 Using cached LiveWires-2.1.tar.gz Could not find a version that satisfies the requirement pygame (from livewires) (from versions: )
No matching distribution found
一段时间后,我安装了pygame,它工作得很好,但我无法让livewires正常工作,我通过在命令提示符下输入"pip install LiveWires“来安装它,但当我试图在python shell中导入模块游戏时,我得到了这个错误:
Traceback (most recent call last): File "<pyshell#1>", line 1, in <module> from livewiresimport games File "C:\Users\youn