开源软件名称(OpenSource Name):lattejed/a-star-lua开源软件地址(OpenSource Url):https://github.com/lattejed/a-star-lua开源编程语言(OpenSource Language):Lua 100.0%开源软件介绍(OpenSource Introduction):A* for LuaA clean, simple implementation of the A* pathfinding algorithm for Lua. This implementation has no dependencies and has a simple interface. It takes a table of nodes, a start and end point and a "valid neighbor" function which makes it easy to adapt the module's behavior, especially in circumstances where valid paths would frequently change. The module automatically caches paths which saves CPU time for frequently accessed start and end nodes. Cached paths can be ignored by setting the appropriate parameter in the main function. Cached paths can be purged with the Usage example
NotesThis assumes that nodes are objects (tables) with (at least) members "x" and "y" that hold the node's coordinates.
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论