Mercurial > boomslang
comparison gamelib/scenes/mess.py @ 579:071a93441995 pyntnclick
Fix snake sound
author | Neil Muller <neil@dip.sun.ac.za> |
---|---|
date | Sat, 11 Feb 2012 16:21:20 +0200 |
parents | 1b1ab71535bd |
children | 4e9178215e75 |
comparison
equal
deleted
inserted
replaced
578:356795038b87 | 579:071a93441995 |
---|---|
259 | 259 |
260 def is_interactive(self, tool=None): | 260 def is_interactive(self, tool=None): |
261 return False | 261 return False |
262 | 262 |
263 def animate(self): | 263 def animate(self): |
264 hiss = self.state.sound.get_sound(self.HISS) | 264 hiss = self.state.gd.sound.get_sound(self.HISS) |
265 if self.get_data('anim_pos') > -1: | 265 if self.get_data('anim_pos') > -1: |
266 self.current_interact.animate() | 266 self.current_interact.animate() |
267 if self.get_data('anim_pos') > self.current_interact._anim_pos: | 267 if self.get_data('anim_pos') > self.current_interact._anim_pos: |
268 self.set_interact('no_snake') | 268 self.set_interact('no_snake') |
269 self.set_data('anim_pos', -1) | 269 self.set_data('anim_pos', -1) |