changeset 553:62569f486ede

Debug print cleanup.
author Jeremy Thurgood <firxen@gmail.com>
date Sun, 10 Apr 2011 01:46:10 +0200
parents 0216b5012411
children 51bc11e3b693
files skaapsteker/dialogue.py skaapsteker/levelscene.py skaapsteker/physics.py skaapsteker/sound.py skaapsteker/sprites/player.py
diffstat 5 files changed, 6 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/skaapsteker/dialogue.py	Sun Apr 10 01:36:11 2011 +0200
+++ b/skaapsteker/dialogue.py	Sun Apr 10 01:46:10 2011 +0200
@@ -41,7 +41,6 @@
 
     def _drop_item(self, item, shift=(1, 0)):
         """Create a tail of the given type."""
-        print "Dropping", item
         to_level = self._me.level
         to_pos = self._me.pos
         to_pos = to_pos[0] + shift[0], to_pos[1] + shift[1]
--- a/skaapsteker/levelscene.py	Sun Apr 10 01:36:11 2011 +0200
+++ b/skaapsteker/levelscene.py	Sun Apr 10 01:46:10 2011 +0200
@@ -344,7 +344,6 @@
                 return
 
             if self._detect_key_sequence(ev):
-                print "Detected double-tap:", self._key_sequence
                 action = self._key_tap_map.get(tuple(self._key_sequence))
                 if action is not None:
                     action()
--- a/skaapsteker/physics.py	Sun Apr 10 01:36:11 2011 +0200
+++ b/skaapsteker/physics.py	Sun Apr 10 01:46:10 2011 +0200
@@ -169,7 +169,6 @@
         return not bool(new_collisions - old_collisions)
 
     def fix_bounds(self, bounds):
-        print "Killing", self, self.rect, self._float_pos, bounds
         self.kill()
 
 
--- a/skaapsteker/sound.py	Sun Apr 10 01:36:11 2011 +0200
+++ b/skaapsteker/sound.py	Sun Apr 10 01:46:10 2011 +0200
@@ -24,13 +24,13 @@
         if want_sound:
             # See if we can actually enabled sound
             try:
-               mixer.init(FREQ, BITSIZE, CHANNELS, BUFFER)
-               test_sound = mixer.Sound(data.filepath('sounds/silence.ogg'))
-               test_sound.play()
-               self.sound_enabled = True
+                mixer.init(FREQ, BITSIZE, CHANNELS, BUFFER)
+                test_sound = mixer.Sound(data.filepath('sounds/silence.ogg'))
+                test_sound.play()
+                self.sound_enabled = True
             except pygame.error:
-               print 'Unable to enable sound'
-               self.sound_enabled = False
+                print 'Unable to enable sound'
+                self.sound_enabled = False
         else:
             self.sound_enabled = False
 
--- a/skaapsteker/sprites/player.py	Sun Apr 10 01:36:11 2011 +0200
+++ b/skaapsteker/sprites/player.py	Sun Apr 10 01:46:10 2011 +0200
@@ -234,7 +234,6 @@
             "Shield on."
             return
         elif 'shield' in self._me.tails and self.check_fire_rate('shield'):
-            print "Activating shield."
             self._shield_start_time = time.time()
             self.using_shield = 1
             return