Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: A * help!  (Read 2447 times)

0 Members and 1 Guest are viewing this topic.

Finn

  • Jr. Member
  • **
  • Posts: 90
    • View Profile
A * help!
« on: October 01, 2010, 07:09:05 pm »
Hey.
I try to implement path-finding for my game. Inspired of some threads here I'd like to try the A* - Pathfinding! I read a few articles about it but I don't really get it. Could someone show me some source? I don't really how to implement the algorithm with c++!
thx,
Finn

Finn

  • Jr. Member
  • **
  • Posts: 90
    • View Profile
A * help!
« Reply #1 on: October 02, 2010, 03:38:05 pm »
No one?

Debilo

  • Newbie
  • *
  • Posts: 10
    • View Profile
A * help!
« Reply #2 on: October 03, 2010, 10:39:56 am »
Are you sure you've completely understood the algorithm? If so, it should actually be no big deal to implement it in C++. Maybe you should first start out with Dijkstra's algorithm, since A* is just an extension of it.
The hard part about it is rather how to integrate the algorithm and the associated data structures properly into your game's environment.

chaos

  • Newbie
  • *
  • Posts: 23
    • View Profile
A * help!
« Reply #3 on: October 05, 2010, 12:52:40 am »
http://www.doujin-spirit.net/temp/chaos/IA.7z try this (the codeblocks project is only to linux)

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6286
  • Thor Developer
    • View Profile
    • Bromeon
A * help!
« Reply #4 on: October 08, 2010, 05:20:43 pm »
Why reinvent the wheel?
boost::astar_search()
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

 

anything