Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/main.py
diff options
context:
space:
mode:
Diffstat (limited to 'main.py')
-rw-r--r--main.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/main.py b/main.py
index 426ca4d..b62fb07 100644
--- a/main.py
+++ b/main.py
@@ -155,7 +155,7 @@ while True:
air = air + arbol.air
# HUD text
- hud_text = "Air: " + str(air) + " Score: " + str(score) + " Speed: " + str(ranger.speed)
+ hud_text = "Air: " + str(air) + " Score: " + str(score)
font = pygame.font.Font(None, 36)
text_hud = font.render( hud_text , 1, (0, 0, 0, 0))
screen.blit(text_hud, (0, 0))
@@ -179,6 +179,8 @@ while True:
ranger.speed = math.fabs(air/10)
else:
ranger.speed = 1
+ for cortador in cutter:
+ cortador.speed = ranger.speed
else:
exit()