Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/main.py
diff options
context:
space:
mode:
authorRodolfo D. Arce S <rodolfo.arce.s@gmail.com>2011-06-11 21:40:34 (GMT)
committer Rodolfo D. Arce S <rodolfo.arce.s@gmail.com>2011-06-11 21:40:34 (GMT)
commit23120db5a02be924eb0003af07bf3319f55a9348 (patch)
treeba075fdb23672ff54f60e92ff2e7f14962abf976 /main.py
parent3c78463a6d155eb1d5780023513dc66ef0ffffee (diff)
Changed planting key and tree cutter speed, removed speed from HUDHEADmaster
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()