aStar on JavaScript
Posted: 30 Mar 2021, 20:13
A* Implementation on JavaScript
This mod will not work on the lastest stable warzone2100 ver 3.4.1
This mod file shows how the new version of the game should load mods, their hierarchy of directories and includes.
The file contains the A* functions, as well as a test minimod that draws a line of the calculated path from the beacon to beacon in a game match.
After the start of the match, just brost two beacons (Ctrl+H) and A* will calculate the distance of the full path, including obstacles, as well as water crossability.
And will throw result in STDOUT through debug() builtin function, and also will draws a red line inside the game.
Overall, it's pretty fast
Worked only on Warzone2100 ver 4.0+This mod will not work on the lastest stable warzone2100 ver 3.4.1
This mod file shows how the new version of the game should load mods, their hierarchy of directories and includes.
The file contains the A* functions, as well as a test minimod that draws a line of the calculated path from the beacon to beacon in a game match.
After the start of the match, just brost two beacons (Ctrl+H) and A* will calculate the distance of the full path, including obstacles, as well as water crossability.
And will throw result in STDOUT through debug() builtin function, and also will draws a red line inside the game.
Overall, it's pretty fast