A* search, written in Lua, for use in the LOVE 2D game engine
Lua
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore Made a more sane repository; updated the demo to LOVE 0.8.0 May 9, 2012
README Updated README May 9, 2012
astar.lua Made a more sane repository; updated the demo to LOVE 0.8.0 May 9, 2012
astar_good.lua Removed bad file warnings from astar_good.lua May 9, 2012
binary_heap.lua Made a more sane repository; updated the demo to LOVE 0.8.0 May 9, 2012
conf.lua
flatten.lua
instructions Readded instructions and license files May 9, 2012
license Readded instructions and license files May 9, 2012
main.lua

README

A* search for Lua, written for pathfinding maps in the LOVE2D game engine.

http://love2d.org/

You can find the demo in the Downloads link in this repository.

Use astar_good.lua for any projects you wish to use LoveAStar in.


CONTROLS FOR THE VISUAL DEMO:

MOUSE:
	Left-click:			places the start node (green rectangle)
	SHIFT+Left-click:	places a wall
	Right-click:		places the end node (red rectangle)

KEYBOARD:
	W:		toggles the drawing of the walls
	M:		toggles the ability to change the map (which stops the calls
			to flattenMap(), to show the speed of A*)
	TAB:	calls A* once
	F2:		resets the program
	P:		toggles the stress test
	[:		Decreases the number of consecutive calls to A* during
			the stress test (clamped at 1)
	]:		Increases the number of consecutive calls to A* during
			the stress test
	ESC:	Quits the program