aboutsummaryrefslogtreecommitdiff
path: root/ViewController.h
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-10-24 14:44:20 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2024-10-24 14:44:20 +0200
commitafc66d3013b7d47c6c22d6a99809bc3e7d1ff0dc (patch)
treede50baa5d2f87cc8a416cbd321f7c7f430b03613 /ViewController.h
parent1e0a52b03fe655d7073ef20703dbb2e7646f74d3 (diff)
implement breadth-first search pathfinding
Diffstat (limited to 'ViewController.h')
-rw-r--r--ViewController.h7
1 files changed, 3 insertions, 4 deletions
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;