Page 7 of 9 FirstFirst ... 56789 LastLast
Results 61 to 70 of 90

Thread: A* pathfinding example !

  1. #61

    A* pathfinding example !

    Wow, that was fast!
    Not only I hate XMas it seems

    Any idea how I can find the error except debugging the Step method which is very often called?

    Firle

  2. #62

    A* pathfinding example !

    you can run to line with F4, and step thru the code with F7 and F8...
    This is my game project - Top Down City:
    http://www.pascalgamedevelopment.com...y-Topic-Reboot

    My OpenAL audio wrapper with Intelligent Source Manager to use unlimited:
    http://www.pascalgamedevelopment.com...source+manager

  3. #63

    A* pathfinding example !

    *laughs*

    Oh yes I already realized

    I thought I might have did something gnerally wrong...

    Okay then Ihave to debug that stuff....

  4. #64

    A* pathfinding example !

    I think I just found it, my blocks (obstacles) we too large.
    Still needs some testing...

    Firle

  5. #65

    A* pathfinding example !

    someone haves an example of path-finding more easy?!

    i can't understand a lot of things in this code!

    it's hard =P

    Brothers! DelphiX is hard!
    GLScene is easy and, i think is more powerfull! =D

    A hug!

  6. #66

    A* pathfinding example !

    Quote Originally Posted by spyke00
    someone haves an example of path-finding more easy?!

    i can't understand a lot of things in this code!

    it's hard =P

    Brothers! DelphiX is hard!
    GLScene is easy and, i think is more powerfull! =D

    A hug!
    dude, read some elementary pascal books, it is not hard, the code is very simple, and this has nothing to do with delphix or glscene.
    This is my game project - Top Down City:
    http://www.pascalgamedevelopment.com...y-Topic-Reboot

    My OpenAL audio wrapper with Intelligent Source Manager to use unlimited:
    http://www.pascalgamedevelopment.com...source+manager

  7. #67
    Co-Founder / PGD Elder WILL's Avatar
    Join Date
    Apr 2003
    Location
    Canada
    Posts
    6,107
    Blog Entries
    25

    A* pathfinding example !

    I've been putting off writing my own A* tutorial for some time now... perhaps it's time to get on it.

    So far my techniques [size=9px](borrowed granted)[/size] have proven them selves in 2 of my recent game projects. I also believe that it's great for customization as in the first [size=9px](Subject 33)[/size], my sole interest was to see what I could do with it to make my roaming robots seem 'smarter'. Which I guess is the whole point, right?
    Jason McMillen
    Pascal Game Development
    Co-Founder





  8. #68

    A* pathfinding example !

    ya! but i can't read! the problem is: can't understand where start and finish the functions, why have?, for what?

    look:
    my map haves 16*16 blocks, total of 256 blocks
    abened's code, is so confused, i don't know where him check the "tile"...
    i don't know where him add +1 to see the next tile.
    that things....

    i hope u understand....

    a easy code:
    Code:
    var
      x,y:integer;
    begin
      for x:=0 to maxtilex do begin
        for y:=0 to maxtiley do begin
          if tile[x,y].wall = true then
            //do something
          end
          else
          if tile[x,y].wall = true then
          end;
        end;
      end;
    end;
    and...

    Brothers! DelphiX is hard!
    GLScene is easy and, i think is more powerfull! =D
    it's just a comment...

    a hug!

  9. #69

    A* pathfinding example !

    I've just taken a look at this code and I have to agree with Delfi in some ways, the code is not hard or badly written.. the trouble is the subject is not trivial.

    DelphiX is one of the easiest things on the planet. You can easily write a game in a weekend with it. There are a TON of tutorial on this site for DelphiX, but that's not what this thread is about.

    I'm sure that abened's code could be tidied up a little to suit a different coding style, but most of the time it's all down to personal preference really.

    The variable naming could be better in my personal opinion, but that's just my preference and certainly not a fault in the code and in no way a disrespect to abened's fine work with this topic.

  10. #70

    A* pathfinding example !

    i'm nothing disrespecting... i'm just say, that him code is confused!

    coz i need something easy, i hate CTRL+C and CTRL+V on source-codes!

    that put trash(inutil things) on code, and... the credits is for another people!

    a hug

Page 7 of 9 FirstFirst ... 56789 LastLast

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
  •