From 880b5eb95bdeb5ab303e1530b14061e6df7f6d13 Mon Sep 17 00:00:00 2001 From: Neil Date: Sat, 10 Sep 2016 19:56:58 +0200 Subject: [PATCH] Change target FPS and rescale things to match --- tabakrolletjie/constants.py | 4 ++-- tabakrolletjie/enemies.py | 6 +++--- tabakrolletjie/lights.py | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tabakrolletjie/constants.py b/tabakrolletjie/constants.py index 9e10892..6ddfd9f 100644 --- a/tabakrolletjie/constants.py +++ b/tabakrolletjie/constants.py @@ -15,10 +15,10 @@ FPS_FRAMES = 50 SCREEN_SIZE = (1024, 704) # Frame per second -FPS = 60 +FPS = 30 # Night length in ticks -NIGHT_LENGTH = 3000 +NIGHT_LENGTH = 1500 # Pymunk categories OBSTACLE_CATEGORY = 1 << 0 diff --git a/tabakrolletjie/enemies.py b/tabakrolletjie/enemies.py index 8294f4d..4fc9470 100644 --- a/tabakrolletjie/enemies.py +++ b/tabakrolletjie/enemies.py @@ -23,8 +23,8 @@ EAT_TURNIP_FILTER = pymunk.ShapeFilter(mask=TURNIP_CATEGORY) # Boyd parameters -SPAWN_RATE = 10 -MAX_AGE = 60 +SPAWN_RATE = 5 +MAX_AGE = 30 MAX_ELEMENTS = 400 MAX_HEALTH = 100 @@ -33,7 +33,7 @@ DAY_HEALTH = 10 HEAL_FACTOR = 1 -MOULD_STAGES = [15, 25] +MOULD_STAGES = [7, 13] MOULD_RADIUS = 16 diff --git a/tabakrolletjie/lights.py b/tabakrolletjie/lights.py index d9f2b2b..723da6a 100644 --- a/tabakrolletjie/lights.py +++ b/tabakrolletjie/lights.py @@ -237,7 +237,7 @@ class BaseLight(object): return 5 * area * self.intensity / 6400 # 80x80 unit area def base_damage(self): - return 5 * self.intensity + return 10 * self.intensity def toggle(self): self.colour_pos += 1 -- 2.34.1