Generated by: tools/gen_sound.py 1000 0.25 ; oggenc -o error.ogg -r beep1000.pcm
Generate by Neil Muller, May 2014
License: MIT-style permissive license - see LICENSE.txt
+
+startup.ogg
+-----------
+
+Notes:
+ Generated by: tools/gen_sound.py 200 0.25 ; tools/gen_sound.py 400 0.25 ; tools/gen_sound.py 600 0.25 ; tools/gen_sound.py 800 0.25 ;
+ cat beep200.pcm beep400.pcm beep600.pcm beep800.pcm > startup.pcm ;
+ oggenc -o startup.ogg -r startup.pcm
+ Generate by Neil Muller, May 2014
+ License: MIT-style permissive license - see LICENSE.txt
from naja.widgets.game_bits import GameBitsWidget
from naja.widgets.info_area import InfoAreaWidget
from naja.widgets.robot import RobotWidget
+from naja.sound import sound
class GameScene(Scene):
self.add(GameBitsWidget((0, 540), state))
self.add(info)
self.add(RobotWidget(state))
+ sound.play_sound('startup.ogg')
def handle_scene_event(self, ev):
from naja.scenes.menu import MenuScene