fever
authorFrank DeMarco <frank.s.demarco@gmail.com>
Sun, 25 May 2014 20:30:37 +0000 (05:30 +0900)
committerFrank DeMarco <frank.s.demarco@gmail.com>
Sun, 25 May 2014 20:30:37 +0000 (05:30 +0900)
config
lake_of_heavenly_wind/LakeOfHeavenlyWind.py
resource/aud/Fever-for-Immolation-Ruins.ogg [new file with mode: 0644]
resource/high-scores

diff --git a/config b/config
index 87d5b6e..fc4174c 100644 (file)
--- a/config
+++ b/config
@@ -33,6 +33,7 @@ pulp = img/Burns-1930/
 
 [audio]
 inner = aud/Sunpeak-Capsaicin.ogg
+outer = aud/Fever-for-Immolation-Ruins.ogg
 
 [text]
 scores = high-scores
index 3b32a87..f1806cf 100644 (file)
@@ -131,6 +131,7 @@ class Title(GameChild):
         self.time_filter = self.get_game().time_filter
         self.display_surface = self.get_display_surface()
         self.delegate = self.get_game().delegate
+        self.music = Sound(self.get_resource("audio", "outer"))
         self.deactivate()
         background = self.background = Sprite(self)
         tile_size = self.tile_size = 8
@@ -191,6 +192,7 @@ class Title(GameChild):
 
     def deactivate(self):
         self.active = False
+        self.music.fadeout(500)
 
     def respond(self, event):
         if self.active:
@@ -200,6 +202,7 @@ class Title(GameChild):
 
     def activate(self, incoming=None):
         self.active = True
+        self.music.play(-1, 0, 500)
         scores = self.scores = []
         count = 5
         for ii, score in enumerate(sorted(self.parent. \
@@ -344,8 +347,8 @@ class GameScreen(GameChild):
         self.paddles.reset_position()
         self.oracle.animals.hide()
         for hexagram in self.parent.book:
-            if not hexagram.is_hidden():
-                hexagram.halt()
+            if not hexagram.explanation.is_hidden():
+                hexagram.explanation.halt()
 
     def respond(self, event):
         if self.active and self.ending and self.game_over_elapsed > 3000 and \
diff --git a/resource/aud/Fever-for-Immolation-Ruins.ogg b/resource/aud/Fever-for-Immolation-Ruins.ogg
new file mode 100644 (file)
index 0000000..634c181
Binary files /dev/null and b/resource/aud/Fever-for-Immolation-Ruins.ogg differ
index 03ac34d..6b6476d 100644 (file)
@@ -32,3 +32,5 @@
 1151
 1442
 1680
+1760
+354