Minor cosmetic updates.
This commit is contained in:
@@ -1,5 +1,12 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- 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
|
import pygame
|
||||||
from libstormgames import *
|
from libstormgames import *
|
||||||
from src.object import Object
|
from src.object import Object
|
||||||
@@ -36,4 +43,4 @@ class DeathSound(Object):
|
|||||||
self.isActive = False
|
self.isActive = False
|
||||||
if self.channel:
|
if self.channel:
|
||||||
obj_stop(self.channel)
|
obj_stop(self.channel)
|
||||||
self.channel = None
|
self.channel = None
|
||||||
@@ -258,7 +258,7 @@ class Enemy(Object):
|
|||||||
self.level.levelScore += totalPoints
|
self.level.levelScore += totalPoints
|
||||||
|
|
||||||
# Create a DeathSound object to play death sound at fixed position
|
# 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)
|
deathSoundObj = DeathSound(self.xPos, self.yPos, self.enemyType, self.sounds)
|
||||||
self.level.objects.append(deathSoundObj)
|
self.level.objects.append(deathSoundObj)
|
||||||
|
|
||||||
|
|||||||
@@ -273,7 +273,7 @@ class Level:
|
|||||||
return # Stop if player is dead
|
return # Stop if player is dead
|
||||||
|
|
||||||
# Update death sound objects
|
# Update death sound objects
|
||||||
from src.death_sound import DeathSound
|
from src.die_monster_die import DeathSound
|
||||||
for obj in self.objects:
|
for obj in self.objects:
|
||||||
if isinstance(obj, DeathSound):
|
if isinstance(obj, DeathSound):
|
||||||
obj.update(currentTime)
|
obj.update(currentTime)
|
||||||
|
|||||||
Reference in New Issue
Block a user