From afc66d3013b7d47c6c22d6a99809bc3e7d1ff0dc Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Thu, 24 Oct 2024 14:44:20 +0200 Subject: implement breadth-first search pathfinding --- ViewController.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'ViewController.h') diff --git a/ViewController.h b/ViewController.h index d50dfb1..ce069bd 100644 --- a/ViewController.h +++ b/ViewController.h @@ -47,10 +47,9 @@ private: bool draw_quadtree = true; private: - unsigned int scale = 16; - unsigned int line_width = 0; - unsigned int artist_size = (scale - line_width) / 2; - unsigned int pathfinding_size = scale - 4; + float scale = 16; + float artist_size = scale / 2; + float pathfinding_size = artist_size; private: XY mouse_pos; -- cgit v1.2.3