aboutsummaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
authorKirill Petrashin <kirill8201@yandex.ru>2026-03-26 14:14:28 +0300
committerKirill Petrashin <kirill8201@yandex.ru>2026-03-26 14:14:28 +0300
commit7bf60474879c52a9b10198e0571a4a46c8dd1fec (patch)
treeec8f517a0abf17eb4727e87d353131e5ecc8fd10 /config.h
parent86f00ecf96149e0dd489979bd39e076131a16cf5 (diff)
downloadastar-7bf60474879c52a9b10198e0571a4a46c8dd1fec.tar.xz
Add cost defines and draw path cost under the map
Diffstat (limited to 'config.h')
-rw-r--r--config.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/config.h b/config.h
index a540c5c..a2c97dd 100644
--- a/config.h
+++ b/config.h
@@ -1,6 +1,9 @@
#ifndef CONFIG_H_
#define CONFIG_H_
+#define COST_ORTHOGONAL 10
+#define COST_DIAGONAL 14 /* sqrt(2) * 10 */
+
/* The characters that represent different tiles.
* Some have two characters -- that's because of the rendering trick where we
* use two characters back-to-back so they look like a square. */