You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm running the game on Python2
If it's intended to run on Python3 only, please state it in the readme.
line 1331: list indices must be integers, not float
I used int() around the indices.
This goes for most of the times you use the "mapData" matrix.
You did it too in line 508
line 1385: range() integer end argument expected, got float
"heartNum" is saved as a "ciel" of something: this doesn't make it int, I guess.
So again I used int() to fix
line 190 super().__init__(pos,"bird",vel)
TypeError: super() takes at least 1 argument (0 given)
I'm new to Python, but I think you need to write: NPC.__init__(self, pos, "bird", vel)
I did a fix to these, if needed I can make a pull request.
The same problem with indices goes for some image loading: img=images[240+math.floor((self.blocks[i][j].maxintegrity-self.blocks[i][j].integrity)/self.blocks[i][j].maxintegrity*9)]
math.floor doesn't return an int, but a float, so I'm still getting error for these.
The text was updated successfully, but these errors were encountered:
I'm running the game on Python2
If it's intended to run on Python3 only, please state it in the readme.
line 1331: list indices must be integers, not float
I used int() around the indices.
This goes for most of the times you use the "mapData" matrix.
You did it too in line 508
line 1385: range() integer end argument expected, got float
"heartNum" is saved as a "ciel" of something: this doesn't make it int, I guess.
So again I used int() to fix
line 190
super().__init__(pos,"bird",vel)
TypeError: super() takes at least 1 argument (0 given)
I'm new to Python, but I think you need to write:
NPC.__init__(self, pos, "bird", vel)
I did a fix to these, if needed I can make a pull request.
The same problem with indices goes for some image loading:
img=images[240+math.floor((self.blocks[i][j].maxintegrity-self.blocks[i][j].integrity)/self.blocks[i][j].maxintegrity*9)]
math.floor doesn't return an int, but a float, so I'm still getting error for these.
The text was updated successfully, but these errors were encountered: