Skip to content

Commit

Permalink
Added sound effect when mario goes big to small
Browse files Browse the repository at this point in the history
  • Loading branch information
justinmeister committed Feb 22, 2014
1 parent b70ae15 commit 8b1b6dd
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions data/states/level1.py
Original file line number Diff line number Diff line change
Expand Up @@ -548,6 +548,7 @@ def check_mario_x_collisions(self):
enemy.start_death_jump(c.RIGHT)
self.sprites_about_to_die_group.add(enemy)
elif self.mario.big:
setup.SFX['pipe'].play()
self.mario.fire = False
self.mario.y_vel = -1
self.mario.state = c.BIG_TO_SMALL
Expand Down
1 change: 0 additions & 1 deletion data/states/load_screen.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ def set_overhead_info_state(self):

def update(self, surface, keys, current_time):
"""Updates the loading screen"""
print(self.game_info[c.COIN_TOTAL])
if (current_time - self.start_time) < 2400:
surface.fill(c.BLACK)
self.overhead_info.update(self.game_info)
Expand Down
Binary file added resources/sound/pipe.wav
Binary file not shown.

0 comments on commit 8b1b6dd

Please sign in to comment.