Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/game.py
diff options
context:
space:
mode:
authorWalter Bender <walter.bender@gmail.com>2012-05-19 12:50:42 (GMT)
committer Walter Bender <walter.bender@gmail.com>2012-05-19 12:50:42 (GMT)
commit6b615e474996ffcc9ff5b2e4353626767673b169 (patch)
treefa9735d0c16a6ef2b4be785ff5fcf67cd030c731 /game.py
parent28da3538c6a3eccd810aba751c4aa4d10575208c (diff)
removing audio until I get a better handle on it
Diffstat (limited to 'game.py')
-rw-r--r--game.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/game.py b/game.py
index 719c654..3fc060f 100644
--- a/game.py
+++ b/game.py
@@ -29,7 +29,7 @@ except ImportError:
GRID_CELL_SIZE = 0
from sprites import Sprites, Sprite
-from play_audio import play_audio_from_file
+# from play_audio import play_audio_from_file
CUCO_LAYER = 2
PANEL_LAYER = 1
@@ -326,9 +326,11 @@ class Game():
return x, y
def _taunt(self, x, y, i):
+ '''
if i == 0:
gobject.idle_add(play_audio_from_file, self, os.path.join(
self._path, 'sounds', 'taunt.ogg'))
+ '''
self._taunt_cards[(i + 1) % 2].hide()
if self._clicked:
@@ -341,9 +343,6 @@ class Game():
200, self._taunt, x, y, i + 1)
def _move_cuco(self, x, y, i):
- if i == 0:
- gobject.idle_add(play_audio_from_file, self, os.path.join(
- self._path, 'sounds', 'move.ogg'))
j = (i + 1) % len(self._cuco_cards)
cx, cy = self._cuco_cards[i].get_xy()
dx = cx - x
@@ -435,8 +434,10 @@ class Game():
self._panel.set_label(ALERTS[1])
self._panel.set_layer(PANEL_LAYER)
self._waiting_for_delete = True
+ '''
gobject.idle_add(play_audio_from_file, self, os.path.join(
self._path, 'sounds', 'error.ogg'))
+ '''
else:
for i in range(n):
if self._sticky_cards[i].labels[0] == k: