Minor cosmetic updates.

This commit is contained in:
Storm Dragon
2025-09-08 18:03:05 -04:00
parent 2437e13604
commit 1d37a16f9e
3 changed files with 10 additions and 3 deletions

View File

@@ -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
self.channel = None

View File

@@ -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)

View File

@@ -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)