Commits

Brian McKenna committed 564aaa4

Change armour colour to be blue and speed to be green - matches enemy bar

Comments (0)

Files changed (4)

-Your Game Title
-===============
+Smooth Jazz Tower Defence
+=========================
 
 Entry in PyWeek #13 http://www.pyweek.org/13/
 
 How to Play the Game
 --------------------
 
-TODO
+This is a tower defence game with a twist
+
+I good first strategy is to place one of each towers at the start of the map.
 
 Development notes 
 -----------------

data/sidebar.png

Old
Old image
New
New image

gradlassians/constants.py

 
 INTERVAL = 1/60.0
 
-INACTIVE_HEALTH = (128, 100, 100)
+INACTIVE_HEALTH = (192, 150, 150)
 ACTIVE_HEALTH = (255, 200, 200)
-INACTIVE_ARMOUR = (128, 100, 100)
-ACTIVE_ARMOUR = (200, 255, 200)
-INACTIVE_SPEED = (100, 100, 128)
-ACTIVE_SPEED = (200, 200, 255)
+INACTIVE_ARMOUR = (150, 150, 192)
+ACTIVE_ARMOUR = (200, 200, 255)
+INACTIVE_SPEED = (150, 192, 150)
+ACTIVE_SPEED = (200, 255, 200)
 
 WAVE_TIME = 30
 WAVE_TIME_DEC = 1

gradlassians/entities.py

         self.power['armour'] = 0.1
         self.power['speed'] = 0
 
-        self.color = (255, 200, 200)
+        self.color = ACTIVE_HEALTH
 
 class ArmorTower(Tower):
     tower_image = image.load('armor_tower', anchor_x=TILE_SIZE / 2, anchor_y=TILE_SIZE / 2)
         self.power['armour'] = 2
         self.power['speed'] = 0
 
-        self.color = (200, 255, 200)
+        self.color = ACTIVE_ARMOUR
 
 
 class SpeedTower(Tower):
         self.power['armour'] = 0.15
         self.power['speed'] = 0.5
 
-        self.color = (200, 200, 255)
+        self.color = ACTIVE_SPEED
 
 class TowerManager(object):
     def __init__(self):
         self.y = 0 - self.height
 
         max_stat = max(max_health, max_armour, speed)
-        self.color = (255 * max_health / max_stat, 255 * max_armour / max_stat, 255 * speed / max_stat)
+        self.color = (255 * max_health / max_stat, 255 * speed / max_stat, 255 * max_armour / max_stat)
 
         group = ThickLineGroup()
         self.healthbar = self.batch.add(2, pyglet.gl.GL_LINES, group,