@@ -121,9 +121,9 @@ def on_key_press(self, key: int, modifiers: int) -> None:
121121 game_view = PlatformerView ()
122122 game_view .setup ()
123123 self .window .show_view (game_view )
124- elif key == arcade .key .I :
125- instructions_view = InstructionsView ()
126- self .window .show_view (instructions_view )
124+ # elif key == arcade.key.I:
125+ # instructions_view = InstructionsView()
126+ # self.window.show_view(instructions_view)
127127
128128
129129# PlatformerView
@@ -158,8 +158,12 @@ def __init__(self) -> None:
158158 self .level = 1
159159
160160 # Load up our sounds here
161- self .coin_sound = arcade .load_sound (str (ASSETS_PATH / "sounds" / "coin.wav" ))
162- self .jump_sound = arcade .load_sound (str (ASSETS_PATH / "sounds" / "jump.wav" ))
161+ self .coin_sound = arcade .load_sound (
162+ str (ASSETS_PATH / "sounds" / "coin.wav" )
163+ )
164+ self .jump_sound = arcade .load_sound (
165+ str (ASSETS_PATH / "sounds" / "jump.wav" )
166+ )
163167 self .victory_sound = arcade .load_sound (
164168 str (ASSETS_PATH / "sounds" / "victory.wav" )
165169 )
@@ -251,16 +255,21 @@ def create_player_sprite(self) -> arcade.AnimatedWalkingSprite:
251255 texture_path = ASSETS_PATH / "images" / "player"
252256
253257 # Setup the appropriate textures
254- walking_paths = [texture_path / f"alienGreen_walk{ x } .png" for x in (1 , 2 )]
255- climbing_paths = [texture_path / f"alienGreen_climb{ x } .png" for x in (1 , 2 )]
258+ walking_paths = [
259+ texture_path / f"alienGreen_walk{ x } .png" for x in (1 , 2 )
260+ ]
261+ climbing_paths = [
262+ texture_path / f"alienGreen_climb{ x } .png" for x in (1 , 2 )
263+ ]
256264 standing_path = texture_path / "alienGreen_stand.png"
257265
258266 # Load them all now
259267 walking_right_textures = [
260268 arcade .load_texture (texture ) for texture in walking_paths
261269 ]
262270 walking_left_textures = [
263- arcade .load_texture (texture , mirrored = True ) for texture in walking_paths
271+ arcade .load_texture (texture , mirrored = True )
272+ for texture in walking_paths
264273 ]
265274
266275 walking_up_textures = [
@@ -272,7 +281,9 @@ def create_player_sprite(self) -> arcade.AnimatedWalkingSprite:
272281
273282 standing_right_textures = [arcade .load_texture (standing_path )]
274283
275- standing_left_textures = [arcade .load_texture (standing_path , mirrored = True )]
284+ standing_left_textures = [
285+ arcade .load_texture (standing_path , mirrored = True )
286+ ]
276287
277288 # Create the sprite
278289 player = arcade .AnimatedWalkingSprite ()
0 commit comments