From 270d4c5a63f869ef6e87b37cf4584de7c15c4e07 Mon Sep 17 00:00:00 2001 From: Florian Jung Date: Fri, 4 Sep 2015 17:53:41 +0200 Subject: draw grid --- pathfinding.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pathfinding.py b/pathfinding.py index aac940b..951a055 100644 --- a/pathfinding.py +++ b/pathfinding.py @@ -279,6 +279,14 @@ class PathfindingTesterStrategy: return True def process_frame(self): + for x in range(0,grid_radius, grid_density): + color=(192,192,192) + self.gui.draw_line((-8000,self.c.player.center.y + x), (8000, self.c.player.center.y + x), color) + self.gui.draw_line((-8000,self.c.player.center.y - x), (8000, self.c.player.center.y - x), color) + self.gui.draw_line((self.c.player.center.x - x,-8000), (self.c.player.center.x - x, 8000), color) + self.gui.draw_line((self.c.player.center.x + x,-8000), (self.c.player.center.x + x, 8000), color) + + if self.gui.marker_updated[0]: self.gui.marker_updated[0]=False -- cgit v1.2.1