summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Jung <flo@windfisch.org>2015-09-04 17:53:41 +0200
committerFlorian Jung <flo@windfisch.org>2015-09-04 17:53:41 +0200
commit270d4c5a63f869ef6e87b37cf4584de7c15c4e07 (patch)
tree990f79cd3b8409de376b2c84554d60c0a29e6df2
parent40adc37c04f33aca4fc29ca7dbfabac4cfa5b2f0 (diff)
draw grid
-rw-r--r--pathfinding.py8
1 files changed, 8 insertions, 0 deletions
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