hexagon board walking demo.

User projects written in or related to FreeBASIC.
Post Reply
ChangeV
Posts: 29
Joined: Mar 19, 2006 4:07
Location: Southern Mississippi

hexagon board walking demo.

Post by ChangeV »

I made hexagon-grid based tile engine for remake of certain board game while ago(and forgot about it).
recently I rewrote whole thing again.
it's far from finished, but it's functioning enough to make walking demo.

click anywhere on the map and ChangeV will walk to that tile.
you can toggle unpassable wall with right mouse button.
added non-stop walking NPC.
added ChangeV as controllable character.

Image

download ver.6a (added scrolling camera):
http://www.changevworld.com/jawsvsoft/e ... mo_v6a.zip

credit:
A* path finding routine.
I used info/sample from
http://www.policyalmanac.org/games/aStarTutorial.htm
and coderJeff's example
http://www.freebasic.net/forum/viewtopic.php?t=9952
I removed all pointer access and replaced them with array index and added more stuff and calculation.
It's not optimized, but it is working.

I reused graphics from my old board game.
Last edited by ChangeV on Jul 29, 2010 2:41, edited 5 times in total.
leopardpm
Posts: 1795
Joined: Feb 28, 2009 20:58

Post by leopardpm »

ChangeV,
I usually don't post much in here, but, I had to tell you that your coding is top notch and you happen to be doing virtually the same thing I am (hex map, scrolling tile engine). Keep up the good work... I am still trying to decipher the code in my spare time.
Post Reply