summaryrefslogtreecommitdiff
path: root/include/constants.lua
diff options
context:
space:
mode:
authorSteph Enders <smenders@gmail.com>2022-06-16 16:53:34 -0400
committerSteph Enders <smenders@gmail.com>2022-06-16 16:53:34 -0400
commit49bb775d4cf9935b0f0d54daa358423ac786c9be (patch)
tree8a14766eb4c825af7e19da822644e5d1695d0206 /include/constants.lua
parentc57ae8c42c1f2f2ed576719c00cff5cf613fe650 (diff)
Made shortest path alg more efficent
In the previous commit this algo waited until the "success" step came up in the queue. Now we have the check during the push - and if an hits we return true from the push_moves fn. Since we're only interested in the initial move (since we check moves every frame) we can only return true and then use the current step as the origin position to diff against the start to get the dx,dy
Diffstat (limited to 'include/constants.lua')
0 files changed, 0 insertions, 0 deletions