diff pytouhou/vm/msgrunner.py @ 321:61adb5453e46

Implement music playback.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Wed, 13 Jun 2012 15:29:43 +0200
parents 4838e9bab0f9
children 1b4f04b08729
line wrap: on
line diff
--- a/pytouhou/vm/msgrunner.py
+++ b/pytouhou/vm/msgrunner.py
@@ -128,6 +128,11 @@ class MSGRunner(object):
         self._game.msg_wait = False
 
 
+    @instruction(7)
+    def change_music(self, track):
+        self._game.change_music(track)
+
+
     @instruction(10)
     def freeze(self):
         self.frozen = True