renamed a variabel
This commit is contained in:
parent
793d3025db
commit
ae7c05c88d
8
Main.py
8
Main.py
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user