That's ok, don't hurry or worry. But you could easily resolve for now "TAB twice" error setting a flag after path is draw (to disable a second TAB press).MarekkPie wrote:Working on the first part. I need to flush the map but then rebuild it, but my current implementation only toggles the attributes of the map upon a mouse event, so it doesn't quite work that way. I suppose I could make an additional layer above the A* layer that has the attributes, then flatten the layers once it's time to start pathing.
For something forgotten I really think you can use this "error" to present a default assignment of path between 1,1 and the chosen destination/origin.MarekkPie wrote:The second is just a "my bad." The oldStart/oldExit need to be initialized to 0,0 instead of 1,1, and then put a guard on the mouse click event since 0,0 doesn't exist on my map, so you'd be indexing a nil value at some point.
BTW You doing a nice work on this.