A* as a Stencyl extension (with basic sample) [ABANDONED]

jihem

  • *
  • Posts: 161
Stencyl extension providing AStar algorithm (extension and basic sample). Each tile(ID) is associated with a character ("." allowed / "X" not allowed). The path can include diagonals (or not). The map representation can be built one time and be used many time. Tile can have a cost of use. Actors may use different map representation,...

@Jon> Is there a way to add documentation in the extension ? Is there a repository for 3 stuffs somewhere ?

Update: attached working extension folder and sample game

« Last Edit: June 08, 2015, 11:35:25 pm by Jon »
while (!success=retry());

Dom818

  • *
  • Posts: 1292
This is really cool jihem! I am building a game that required pathfinding and this saves me the time of having to do it myself. Thanks!!!

Do you mind posting a little description here what each of the blocks do for reference?

Jon

  • *
  • Posts: 17524
Documentation is best provided via the website URL which the user sees when they enable the extension. You specify this in the file with the other metadata.

I can wire it up so that when they right-click the block and select 'View Help', it will jump them to that same page - is that OK?

Dom818

  • *
  • Posts: 1292
That would be a nice way of documenting the extensions we make.

Jon

  • *
  • Posts: 17524

Dom818

  • *
  • Posts: 1292
OK, that's done.

Well, that was ridiculously quick. :)

Hectate

  • *
  • Posts: 4643
Just a thought, should there be a disclaimer dialog box (with permanent "do not display" checkbox) stating "Stencyl LLC is not responsible for the content of this third-party link"? I'm just considering the possibilities if the URL is either deliberately or accidentally dangerous to someone's PC...
:
:
Patience is a Virtue,
But Haste is my Life.
Proud member of the League of Idiotic Stencylers; doing things in Stencyl that probably shouldn't be done.

jihem

  • *
  • Posts: 161
@Dom818>Happy to help. Thanks for your message. I will add some description and documentation soon (may be tomorrow).
@Jon>Ok. I will update the URL and create the required pages.
while (!success=retry());

Jon

  • *
  • Posts: 17524
I've moved this to the extensions forum, if you don't mind.

jihem

  • *
  • Posts: 161
> I've moved this to the extensions forum, if you don't mind.
I apologize. I would have to put this in the right place. (This sounds strange to me... Is this a correct sentence?)

For the documentation and the incoming features, I create a github repository :

https://github.com/jihem/Stencyl-DecisionMaking

Can somebody have a look ? Dom818 ? Huuuuuu... ^_^
while (!success=retry());

Dom818

  • *
  • Posts: 1292
Looks good, jihem. I will implement this into my game soon.

« Last Edit: November 09, 2012, 08:19:29 pm by Dom818 »

Jon

  • *
  • Posts: 17524
That's awesome - do you mind if I mention / point to the Github page when I blog about extensions?

jihem

  • *
  • Posts: 161
You can point to the Github page. I will be proud of that.  :)
while (!success=retry());

Dom818

  • *
  • Posts: 1292
Is there any way to determine if a path is possible at all (maybe a block that figures out if a path is possible)? If I make it so it is impossible to reach the ending, the program stops and freezes.

jihem

  • *
  • Posts: 161
I will fix this today. You will get an empty string (from "path for map..." block) when the path is closed. So you can test it before to split and make each move. Stay tuned...
while (!success=retry());