[Sample] Hexmap

Showcase your libraries, tools and other projects that help your fellow love users.
Post Reply
GreenMan
Prole
Posts: 2
Joined: Fri Nov 06, 2009 10:37 am
Location: Russia

[Sample] Hexmap

Post by GreenMan »

Hi everyone! I've created a little example application that displays a hexmap. What do you think?

BTW, tiles are from Battle for Wesnoth.
Hexmap.love
(33.24 KiB) Downloaded 879 times
User avatar
napco
Party member
Posts: 129
Joined: Fri Jun 12, 2009 9:28 pm
Location: Ital... ehm...

Re: [Sample] Hexmap

Post by napco »

Nice work. Nice graphics also. What kind of game uses hexagonal tiles? I really don't know... Maybe strategy games? By the way, you could add simultaneous horizontal/vertical scrolling.
GreenMan
Prole
Posts: 2
Joined: Fri Nov 06, 2009 10:37 am
Location: Russia

Re: [Sample] Hexmap

Post by GreenMan »

Thanks! Hexagonal tiles are used in some strategy and war games. And what's about scrolling? I thought it's working alright.
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: [Sample] Hexmap

Post by Robin »

GreenMan wrote:And what's about scrolling? I thought it's working alright.
The scrolling's working fine. When your game progresses further, you could try and jazz it up a bit, but it isn't bad or anything right now.

Hexagonal tiles are less straightforward to use than squares, I think, but they probably have some advantages as well.
Help us help you: attach a .love.
User avatar
Skasi
Prole
Posts: 27
Joined: Thu Feb 12, 2009 2:25 pm

Re: [Sample] Hexmap

Post by Skasi »

I prefer middle-mouse-drag-n-drop in some games. I think something like that somehow fits hexmaps.. maybe maps with tiles as a whole. :)
Otherwise I do not see a problem with scrolling.

By the way, what about zooming?
User avatar
Sardtok
Party member
Posts: 108
Joined: Thu Feb 21, 2008 2:37 pm
Location: Norway/Norge/諾威/挪威 (Yes, I'm teh back!)
Contact:

Re: [Sample] Hexmap

Post by Sardtok »

Hexagonal tiles are used in a lot of strategy games, because the distance from on tile to the next is always the same.
For squares diagonal moves are either illegal or legal. If they are illegal, it takes two moves to move to a square that is diagonal to the current square. If it is legal, you can speed up movement by moving diagonally, because the diagonal move covers about 1.42 times the distance.

Of course, with hexagonal tiles, you can't move east–west.

EDIT:
Well, hexagonal tiles translates badly to compass points.
The true advantage lies in there being no contact between tiles in corners.
Take off every Zigg for great rapist.
Now, outgay that!
Post Reply

Who is online

Users browsing this forum: No registered users and 15 guests