From 7c2dce0c669fdf695c4b1a637f9d46232154d9b9 Mon Sep 17 00:00:00 2001 From: Florian Jung Date: Tue, 18 Aug 2015 18:02:47 +0200 Subject: fix breakage --- strategy.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/strategy.py b/strategy.py index 233541b..0d2d8f0 100644 --- a/strategy.py +++ b/strategy.py @@ -190,6 +190,4 @@ class Strategy: # more debugging gui.draw_line(self.c.player.center, self.target, self.color) - gui.draw_text(self.target, str(round(zipped[0][1], 2)), (0,0,0), draw_centered = True) - return self.target -- cgit v1.2.1 From 1abc1581137fe968fb94f89810ac8563afbfd800 Mon Sep 17 00:00:00 2001 From: Florian Jung Date: Tue, 18 Aug 2015 18:03:14 +0200 Subject: show mass/size on cells --- gui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui.py b/gui.py index 92b1982..68aa48e 100644 --- a/gui.py +++ b/gui.py @@ -172,7 +172,7 @@ def draw_cell(cell): # surface = draw_text(cell.name, (0, 0, 0), font_size) # screen.blit(surface, (cx - (surface.get_width()/2), cy + radius + 5)) - draw_text((cx, cy), str(int(cell.mass)), (255, 255, 255), font_size, False, True) + draw_text((cx, cy), str(int(cell.mass))+"/"+str(int(cell.size)), (255, 255, 255), font_size, False, True) # surface = draw_text(str(int(cell.mass)), (255, 255, 255), font_size) # screen.blit(surface, (cx - (surface.get_width()/2), cy - (surface.get_height()/2))) else: -- cgit v1.2.1