Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

juggerp

Hex Graphics

This topic is 5223 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello, I have a quick question regarding hex-based graphics in a turn-based strategy game....the way I have my game board set up is that odd numbered rows are offset from even numbered rows, so that each hex is oriented like this: /\ | | \/ My question is how can a straight road going vertically on the board be represented accurately? If a road going horizontally across several hexes, everything is handled normally. However, if a road going across several tiles is vertical, the raod will alternate going over a single hex then over two side-by-side hexes. Graphically it is easy to do, but how would I place a unit properly on the correct tile, if parts of the road are actually split across two different tiles? Thanks for the help

Share this post


Link to post
Share on other sites
Advertisement
quote:
Original post by juggerp
...
My question is how can a straight road going vertically on the board be represented accurately?
...
Graphically it is easy to do, but how would I place a unit properly on the correct tile, if parts of the road are actually split across two different tiles?



Have you ever seen Fallout 1 or 2 ? There are no roads but still the problem is the same as yours: character couldn''t move straight vertically (or horisontally in your account), he just ran in zigzags. But AFAI noticed nobody gives so much attention to it even to spare the time for criticizing . IMHO there''s one solution to write the game hex''n''roads could not spoil ;D

Share this post


Link to post
Share on other sites
one possibility is instead of having your vertical roads be centered int the hex, have them offset to the left or right so that they pass through a definate hex and not between to.

for example (which i''ll do turned 90 degreed since it''s easier to draw):


o--------o o
/ || \ /
/ || \ /
/ || \ /
o || o--------o
\ || / \
\ | =====/============\==
\ || / \
o--------o o
/ || \ /
/ || \ /
/ || \ /
o || o--------o



anyway, hope this helps in some way.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!