diff options
| author | Kirill Petrashin <kirill8201@yandex.ru> | 2026-03-26 14:14:28 +0300 |
|---|---|---|
| committer | Kirill Petrashin <kirill8201@yandex.ru> | 2026-03-26 14:14:28 +0300 |
| commit | 7bf60474879c52a9b10198e0571a4a46c8dd1fec (patch) | |
| tree | ec8f517a0abf17eb4727e87d353131e5ecc8fd10 /config.h | |
| parent | 86f00ecf96149e0dd489979bd39e076131a16cf5 (diff) | |
| download | astar-7bf60474879c52a9b10198e0571a4a46c8dd1fec.tar.xz | |
Add cost defines and draw path cost under the map
Diffstat (limited to 'config.h')
| -rw-r--r-- | config.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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. */ |
