10.03.2019 - Round 1 results of our "A Love Letter For FreeBASIC" game dev competition have been published. Please be sure to check the results thread: http://games.freebasic.net/forum/index.php?topic=629.0. Don't forget that the competition is continuing with a round 2, lasting till 29th of April, 300 USD first prize. Stay tuned!

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - ChangeV

Pages: [1]
1
Work In Progress / hexagon board walking demo.
« on: October 26, 2009, 02:57:27 AM »
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.



download ver.6a (added scrolling camera):
http://www.changevworld.com/jawsvsoft/efx/hex_demo_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.

Pages: [1]