Minor cosmetic updates.
This commit is contained in:
@@ -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
|
||||
@@ -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)
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user