Jump to content

View more

Image of the Day

The night is still, but the invasion brings chaos. #screenshotsaturday #hanako #indiegame #gameart #ue4 #samurai https://t.co/cgILXuokoS
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

A* C implementation code.

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
No replies to this topic

#1 KnolanCross   Members   

1974
Like
3Likes
Like

Posted 13 October 2012 - 12:10 PM

Hi, I recently coded the A* for a grid game hobby project in C.
It can be used by any C grid game as long as the character looking for a path moves one cell at a time (the algorithm can be used with diagonal movement enable or only vertical/horizontal moves).

The code and the whole explanation on how to interface with other codes can be find here:

http://16bitsflag.bl...grids-in-c.html

That is it, just wanted to share the code, hope someone find it useful.

Edited by KnolanCross, 13 October 2012 - 12:28 PM.

Currently working on a scene editor for ORX (http://orx-project.org), using kivy (http://kivy.org).





Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.