gfxgfxFreeBASIC Games Directory Forumgfxgfx
gfx gfx
gfx
Welcome, Guest. Please login or register. May 24, 2013, 11:46:13 PM

Login with username, password and session length
11.5.2013 - Added a webpage for the latest FBGD competition.

13.3.2013 - Members registrations temporary disabled. For all membership requests, please email me: lachie13@yahoo.com

30.11.2012 - The ninth issue of BASIC Gaming is out! Read it here: http://games.freebasic.net/forum/index.php?topic=560.0

22.11.2012 - Be sure to check our currently running annual FBGD game making competition. This year's theme is SEASONS OF THE YEAR, 300 $ first place prize, and the competition runs till 18th of February. Link: http://games.freebasic.net/forum/index.php?topic=559.0
gfx
gfx
*
gfxgfx
gfxgfx gfxgfx
gfxgfx Home Help Search Login Register   gfxgfx
gfx gfx
gfx
Pages: [1]
Print
Author Topic: hexagon board walking demo.  (Read 1326 times)
ChangeV
Amoeba
*
Posts: 13


spinning ChangeV


View Profile Email
« 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.
« Last Edit: July 28, 2010, 08:47:17 PM by ChangeV » Logged
Brick Break
Forum Sage
*****
Gender: Male
Posts: 412



View Profile
« Reply #1 on: October 26, 2009, 04:13:41 PM »

Doesn't this seem like the perfect engine to make an RTS with?

Oh, and welcome to the forums!

OK, played it, great example of A*, and you implemented camera scrolling beautifully. Great artwork too. Kind of sucks how there's not much to do at this stage, because it's an awesome engine. I would suggest some savable real-time editing features, like the ability to place tiles and whatnot.
« Last Edit: October 26, 2009, 04:19:26 PM by Brick Break » Logged

Pages: [1]
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines
Cerberus design by Bloc
Valid XHTML 1.0! Valid CSS!
gfx
gfxgfx gfxgfx