I found an error with The Scene example on the website. I changed a thing to make it work but have no clue if I borked it or not.
OLD CODE
def terminal_update(self):
i = 0
for j, scene in enumerate(self.scene_stack):
if scene.covers_screen:
i = j
for scene in self.scene_stack[i:]:
scene.terminal_update(scene == self.scene_stack[-1]) #THIS PRODUCES AN ERROR
return not self.should_exit
MY JANKY ATTEMPT
def terminal_update(self):
i = 0
for j, scene in enumerate(self.scene_stack):
if scene.covers_screen:
i = j
for scene in self.scene_stack[i:]:
scene = self.scene_stack[-1]#<=== EDITED THIS
scene.terminal_update()
return not self.should_exit
That said, it now works but no clue if I ruined any other features.
I found an error with The Scene example on the website. I changed a thing to make it work but have no clue if I borked it or not.
OLD CODE
MY JANKY ATTEMPT
That said, it now works but no clue if I ruined any other features.