<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Developing hex map concept</title>
	<atom:link href="http://www.emanueleferonato.com/2008/10/22/developing-hex-map-concept/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.emanueleferonato.com/2008/10/22/developing-hex-map-concept/</link>
	<description>italian geek and PROgrammer</description>
	<lastBuildDate>Fri, 10 Feb 2012 12:12:29 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
	<item>
		<title>By: Benjamin Colglazier</title>
		<link>http://www.emanueleferonato.com/2008/10/22/developing-hex-map-concept/#comment-752305</link>
		<dc:creator>Benjamin Colglazier</dc:creator>
		<pubDate>Fri, 11 Feb 2011 18:30:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/?p=591#comment-752305</guid>
		<description>I don&#039;t know if this has gone anywhere (I just glanced at a couple of your links), but I did substantial HEX work in BASIC &amp; Perl in support of Star Fleet Battles about 20ish years ago and still have source for the Perl functions.

I advocate polar coordinate based systems for hex maps, but you still have to convert to Cartesian maps for rendering which I consider a nuisance.

The core concepts are that you declare an Origin Hex (0) and everything you perceive from there is simply a series of concatenated single-hex vectors (1A, 1B, 1C, 1D, 1E, 1F) from the origin (0 + 1A + 1B + 1C = 2B)

Functions include:
Simplify - takes a concatenated vector and renders a 2 vector result to uniquely identify the target
Combine (A+C = B)
Negate (A+D = 0)

Doing these from Memory:
ABBCCCDDDDEEEEEFFFFFF = 1A2B3C4D5E6F
1A2B3C4D5E6F = (1,2,3,4,5,6)
some other format conversions
some true path conversion

I had started to create some JavaScript ports and I&#039;m pretty sure those are still floating around close by.

What all this buys you is a native way to represent the data for AI and other traversal logic and you just need to apply some Trig and other Flash magic to render the hexes.</description>
		<content:encoded><![CDATA[<p>I don&#8217;t know if this has gone anywhere (I just glanced at a couple of your links), but I did substantial HEX work in BASIC &amp; Perl in support of Star Fleet Battles about 20ish years ago and still have source for the Perl functions.</p>
<p>I advocate polar coordinate based systems for hex maps, but you still have to convert to Cartesian maps for rendering which I consider a nuisance.</p>
<p>The core concepts are that you declare an Origin Hex (0) and everything you perceive from there is simply a series of concatenated single-hex vectors (1A, 1B, 1C, 1D, 1E, 1F) from the origin (0 + 1A + 1B + 1C = 2B)</p>
<p>Functions include:<br />
Simplify &#8211; takes a concatenated vector and renders a 2 vector result to uniquely identify the target<br />
Combine (A+C = B)<br />
Negate (A+D = 0)</p>
<p>Doing these from Memory:<br />
ABBCCCDDDDEEEEEFFFFFF = 1A2B3C4D5E6F<br />
1A2B3C4D5E6F = (1,2,3,4,5,6)<br />
some other format conversions<br />
some true path conversion</p>
<p>I had started to create some JavaScript ports and I&#8217;m pretty sure those are still floating around close by.</p>
<p>What all this buys you is a native way to represent the data for AI and other traversal logic and you just need to apply some Trig and other Flash magic to render the hexes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric</title>
		<link>http://www.emanueleferonato.com/2008/10/22/developing-hex-map-concept/#comment-491123</link>
		<dc:creator>Eric</dc:creator>
		<pubDate>Wed, 26 Aug 2009 16:05:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/?p=591#comment-491123</guid>
		<description>Hi,

Same here, I&#039;d love to be able to look at your source code?

Thank you very much!

eric</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Same here, I&#8217;d love to be able to look at your source code?</p>
<p>Thank you very much!</p>
<p>eric</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pavel</title>
		<link>http://www.emanueleferonato.com/2008/10/22/developing-hex-map-concept/#comment-490706</link>
		<dc:creator>Pavel</dc:creator>
		<pubDate>Tue, 25 Aug 2009 18:27:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/?p=591#comment-490706</guid>
		<description>Hi,

I do not see any code but comments. Could you repost it here or email it to me?

Thank you in advance,
Pavel.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I do not see any code but comments. Could you repost it here or email it to me?</p>
<p>Thank you in advance,<br />
Pavel.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kristian Mandrup</title>
		<link>http://www.emanueleferonato.com/2008/10/22/developing-hex-map-concept/#comment-383712</link>
		<dc:creator>Kristian Mandrup</dc:creator>
		<pubDate>Thu, 05 Feb 2009 22:32:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/?p=591#comment-383712</guid>
		<description>Hi,

I have been looking for such a library in javascript for use with the new Canvas 2D. I don&#039;t see the source code in the text box, only the comments. Could you please send the source code to:
kmandrup@gmail.com

Then I would love to build on that. I already made some code myself to draw a tiled hexagonal map, but need code to determine hexagon clicked, movement etc.

I found some old articles on the web too... but this looks great!
Good luck!

Kristan</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I have been looking for such a library in javascript for use with the new Canvas 2D. I don&#8217;t see the source code in the text box, only the comments. Could you please send the source code to:<br />
<a href="mailto:kmandrup@gmail.com">kmandrup@gmail.com</a></p>
<p>Then I would love to build on that. I already made some code myself to draw a tiled hexagonal map, but need code to determine hexagon clicked, movement etc.</p>
<p>I found some old articles on the web too&#8230; but this looks great!<br />
Good luck!</p>
<p>Kristan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arxanas</title>
		<link>http://www.emanueleferonato.com/2008/10/22/developing-hex-map-concept/#comment-311213</link>
		<dc:creator>Arxanas</dc:creator>
		<pubDate>Wed, 22 Oct 2008 23:43:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/?p=591#comment-311213</guid>
		<description>Reminds me of RPG Maker XP&#039;s RGSS. That was a scriping system with a bunch of classes and functions, to make an RPG (didn&#039;t see that coming!). You could also edit it and add your own scripts, making the game highly customizable.
Unfortunately, it was written in Ruby (powerful but not supported).</description>
		<content:encoded><![CDATA[<p>Reminds me of RPG Maker XP&#8217;s RGSS. That was a scriping system with a bunch of classes and functions, to make an RPG (didn&#8217;t see that coming!). You could also edit it and add your own scripts, making the game highly customizable.<br />
Unfortunately, it was written in Ruby (powerful but not supported).</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: enhanced
Database Caching 6/11 queries in 0.279 seconds using disk: basic

Served from: www.emanueleferonato.com @ 2012-02-10 22:06:44 -->
