Skip to content
This repository
Browse code

Fix a bug

  • Loading branch information...
commit 538af7d4adaa6ce0978e194553c5d4dbb3dc6727 1 parent f57e7d6
Flávio Ribeiro authored August 26, 2010
14  jailbreakerz/actions.py
@@ -10,21 +10,21 @@ def init(self, thief_type=None):
10 10
 
11 11
         if thief_type == 'fat':
12 12
             self.position = (500, 0)
13  
-            self.height = 100
  13
+            self.height = 50
14 14
             self.duration = 10
15  
-            self.jumps = 7
  15
+            self.jumps = 4
16 16
 
17 17
         elif thief_type == 'small':
18 18
             self.position = (500, 0)
19  
-            self.height = 100
20  
-            self.duration = 10
21  
-            self.jumps = 7
  19
+            self.height = 200
  20
+            self.duration = 5
  21
+            self.jumps = 2
22 22
 
23 23
         elif thief_type == 'tall':
24 24
             self.position = (500, 0)
25 25
             self.height = 100
26  
-            self.duration = 10
27  
-            self.jumps = 7
  26
+            self.duration = 15
  27
+            self.jumps = 3
28 28
 
29 29
     def start( self ):
30 30
         self.start_position = self.target.position
4  jailbreakerz/game.py
@@ -33,7 +33,7 @@ def __init__(self):
33 33
         self.keys = key.KeyStateHandler()
34 34
         director.window.push_handlers(self.keys)
35 35
 
36  
-        self.schedule_interval(self.thiefs_builder, 10)
  36
+        self.schedule_interval(self.thiefs_builder, 1)
37 37
 
38 38
     def thiefs_builder(self, dt):
39 39
         self.add(FallingThief())
@@ -63,7 +63,7 @@ def __init__(self, *args, **kwargs):
63 63
                     'small' : 'media/imgs/small_thief.png', \
64 64
                     'fat' : 'media/imgs/fat_thief.png'}
65 65
         
66  
-        self.thief_type = random.choice(thiefs)
  66
+        self.thief_type = random.choice(thiefs.items())
67 67
         self.thief = Sprite(self.thief_type[1])
68 68
         self.thief.position = 100, 190
69 69
         self.add(self.thief)

0 notes on commit 538af7d

Please sign in to comment.
Something went wrong with that request. Please try again.