Permalink
Browse files

Fix a bug

  • Loading branch information...
flavioribeiro committed Aug 27, 2010
1 parent f57e7d6 commit 538af7d4adaa6ce0978e194553c5d4dbb3dc6727
Showing with 9 additions and 9 deletions.
  1. +7 −7 jailbreakerz/actions.py
  2. +2 −2 jailbreakerz/game.py
View
@@ -10,21 +10,21 @@ def init(self, thief_type=None):
if thief_type == 'fat':
self.position = (500, 0)
- self.height = 100
+ self.height = 50
self.duration = 10
- self.jumps = 7
+ self.jumps = 4
elif thief_type == 'small':
self.position = (500, 0)
- self.height = 100
- self.duration = 10
- self.jumps = 7
+ self.height = 200
+ self.duration = 5
+ self.jumps = 2
elif thief_type == 'tall':
self.position = (500, 0)
self.height = 100
- self.duration = 10
- self.jumps = 7
+ self.duration = 15
+ self.jumps = 3
def start( self ):
self.start_position = self.target.position
View
@@ -33,7 +33,7 @@ def __init__(self):
self.keys = key.KeyStateHandler()
director.window.push_handlers(self.keys)
- self.schedule_interval(self.thiefs_builder, 10)
+ self.schedule_interval(self.thiefs_builder, 1)
def thiefs_builder(self, dt):
self.add(FallingThief())
@@ -63,7 +63,7 @@ def __init__(self, *args, **kwargs):
'small' : 'media/imgs/small_thief.png', \
'fat' : 'media/imgs/fat_thief.png'}
- self.thief_type = random.choice(thiefs)
+ self.thief_type = random.choice(thiefs.items())
self.thief = Sprite(self.thief_type[1])
self.thief.position = 100, 190
self.add(self.thief)

0 comments on commit 538af7d

Please sign in to comment.