Results 1 to 10 of 15

Thread: SMS Pathfinding code

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    SMS Pathfinding code

    I needed a path finding routine for my little Rebelstar game project. I thought I could simply use pathfinding code already written in pascal for the job. This turned out to be more difficult that expected. Hassles with multidimensional dynamic arrays, binary heaps and other oddities that I could easily get working. I finally managed a simple routine working. I don't know who to credit for the original source code as there was no name provided.

    The code is provided as is. I do not think that it is very quick. There is no cost for different terrain or diagonals implemented. However, that should not be too hard to add. Also there is no fancy interface to draw walls etc it is just bare bones.

    http://www.numberworksnwords.com/clo...inding_SMS.zip

    It would be nice to have a better implementation of pathfinding - e..g., a proper Astar with terrain penalties etc
    Last edited by czar; 08-08-2017 at 05:18 AM.
    The views expressed on this programme are bloody good ones. - Fred Dagg

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •