Commit Graph

9 Commits

Author SHA1 Message Date
Andrew Ardill 255bdd68fc world.js: Improve road drawing algorithm
Instead of drawing an 'L' shape road to the village, find the closest road,
outpost or village and draw the road to it. Care is taken to ensure that a
road is drawn if you are standing on top of an outpost, as the outpost may be
created before the tile it stands on is connected to the road network.
2013-07-10 20:52:18 +10:00
Andrew Ardill 26b955fee8 world.js: Increase functionality of getDistance
Allow passing 'from' and 'to' positions to getDistance to find the distance
between them.
2013-07-10 20:52:18 +10:00
Andrew Ardill c4afe143a9 world.js: Introduce World.VILLAGE_POS
This constant gets reused in a few places, so extract it out. Work will be
required to migrate existing code away from hard coding World.RADIUS in places
where we are talking about the village location.
2013-07-10 20:52:18 +10:00
Andrew Ardill b97f5d9914 world.js: Introduce function to copy positions 2013-07-10 20:52:17 +10:00
Michael Townsend 9327358008 Merge pull request #1 from daturkel/patch-1
Added a note to mobileWarning about arrow keys
2013-07-03 10:46:45 -07:00
Dan Turkel a37bb40c81 Added a note to mobileWarning about arrow keys
An HN commenter noted that he ignored the mobilewarning and tried the game and found it worked. That is, until he got to the Embark stage and found himself arrow key-less. This warning is slightly more verbose to avoid similar situations.
2013-07-03 13:44:45 -04:00
Michael Townsend 19abccfcc4 Adding ADR to Github 1.2 2013-07-03 07:56:13 -07:00
Michael Townsend 9616c79816 Create LICENSE.md 2013-07-03 10:38:16 -04:00
Michael Townsend 2bb3dfb9fb Create README.md 2013-07-03 10:32:07 -04:00