#### Archived

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

# Hex Graphics

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

## 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 on other sites
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 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.

1. 1
Rutin
41
2. 2
3. 3
4. 4
5. 5

• 16
• 18
• 12
• 14
• 9
• ### Forum Statistics

• Total Topics
633362
• Total Posts
3011526
• ### Who's Online (See full list)

There are no registered users currently online

×

## Important Information

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!