Ogg generated using 'oggenc -q -1 -o beep_kind.ogg BEEPKIND.WAV'
+battery_dying.ogg
+-----------------
+
+URL:
+ http://archive.org/download/Berklee44v3/Berklee44v3.zip
+Source:
+ http://archive.org/details/Berklee44v3
+License:
+ http://creativecommons.org/licenses/by/3.0
+Notes:
+ Ogg generated using 'oggenc -q -1 -o battery_dying.ogg feedback_efx_2.wav'
+
+
eating_chips_1.ogg
eating_chips_2.ogg
eating_chips_3.ogg
from ..events import SceneChangeEvent
from ..utils import debug_timer, shadowed_text
from ..loader import loader
+from ..sound import sound
from ..transforms import Overlay
from ..turnip import Turnip
from ..widgets import ImageButton
self._obstacles = ObstacleManager(self._space, gamestate)
self._lights = LightManager(self._space, gamestate)
self._battery = BatteryManager(gamestate)
+ self._battery_dead = False
self.check_battery()
self._infobar = InfoBar("day", battery=self._battery, scene=self)
self._countdownbar = CountDownBar("h")
(350, 240)))
def check_battery(self):
- if self._battery.current == 0:
+ if self._battery.current == 0 and not self._battery_dead:
+ self._battery_dead = True
+ sound.play_sound("battery_dying.ogg")
self._lights.battery_dead()
@debug_timer("night.tick")