renamed a variabel

This commit is contained in:
EggMan 2024-04-26 09:45:31 -04:00
parent 793d3025db
commit ae7c05c88d

View File

@ -52,7 +52,7 @@ class MyGame(arcade.Window):
self.alienChangeDir = 0
self.alienCurrentDir = -1
self.movedown = False
self.current_texture_index = 0
self.current_player_texture_index = 0
self.player_sprite = None
@ -172,9 +172,9 @@ class MyGame(arcade.Window):
self.death_textures.append(texture)
def play_death_animation(self):
if self.current_texture_index < len(self.death_textures):
self.player_sprite.set_texture(self.current_texture_index)
self.current_texture_index += 1
if self.current_player_texture_index < len(self.death_textures):
self.player_sprite.set_texture(self.current_player_texture_index)
self.current_player_texture_index += 1
def on_draw(self):
self.clear()