diff --git a/src/death_sound.py b/src/die_monster_die.py similarity index 85% rename from src/death_sound.py rename to src/die_monster_die.py index bb9b6e3..0d4dea4 100644 --- a/src/death_sound.py +++ b/src/die_monster_die.py @@ -1,5 +1,12 @@ # -*- coding: utf-8 -*- +# Woohoo! Diemonsterdie! + +# The moon is full +# The time is right to shed my evil demon's light on you +# Navigate by pumpkin's light +# This cornfield hides a shallow grave for you + import pygame from libstormgames import * from src.object import Object @@ -36,4 +43,4 @@ class DeathSound(Object): self.isActive = False if self.channel: obj_stop(self.channel) - self.channel = None \ No newline at end of file + self.channel = None diff --git a/src/enemy.py b/src/enemy.py index f560a24..b129b91 100644 --- a/src/enemy.py +++ b/src/enemy.py @@ -258,7 +258,7 @@ class Enemy(Object): self.level.levelScore += totalPoints # Create a DeathSound object to play death sound at fixed position - from src.death_sound import DeathSound + from src.die_monster_die import DeathSound deathSoundObj = DeathSound(self.xPos, self.yPos, self.enemyType, self.sounds) self.level.objects.append(deathSoundObj) diff --git a/src/level.py b/src/level.py index c470066..f48db9a 100644 --- a/src/level.py +++ b/src/level.py @@ -273,7 +273,7 @@ class Level: return # Stop if player is dead # Update death sound objects - from src.death_sound import DeathSound + from src.die_monster_die import DeathSound for obj in self.objects: if isinstance(obj, DeathSound): obj.update(currentTime)