Navigating maps

Showcase your libraries, tools and other projects that help your fellow love users.
Post Reply
User avatar
Peter Hickman
Prole
Posts: 15
Joined: Fri Jan 30, 2009 8:19 am

Navigating maps

Post by Peter Hickman »

This is just a little experiment to generate a random map and navigate around it. All very basic. Clicking in either map window will refocus the map on the selected area and the arrow keys will move the map one tile at a time.

Hopefully the love file will be usable for those not blessed with Macs :)
Attachments
map.love.zip
Simple map navigation
(4.03 KiB) Downloaded 332 times
User avatar
Skofo
Party member
Posts: 146
Joined: Mon Dec 22, 2008 10:55 pm

Re: Navigating maps

Post by Skofo »

Whoaa, that is too neat! :ultrashocked::

I commend your procedural generation/map coding skillz! ^^
Working on: Viator
Need a 64-bit Debian package for LÖVE? Here it is!
User avatar
Xcmd
Party member
Posts: 211
Joined: Fri Feb 13, 2009 10:45 pm

Re: Navigating maps

Post by Xcmd »

Awesome. I really dig the retro feel to the entire thing, although it's a tad slowish for me.

But was the .zip-ing really necessary? It's one more step before I can play it.
We don't borrow, we don't read, we don't rent, we don't lease, we take the minds!
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: Navigating maps

Post by bartbes »

Nice!

@Xcmd: What? You're double-clicking LÖVE files? Pffff... Only thing that was 'wrong' with this package was the extension, wasn't too bad was it? I thought I had to unpack some more. (Linux doesn't care about extension, if set up properly). (Don't take this serious btw)
User avatar
Voker57
Prole
Posts: 29
Joined: Mon Nov 03, 2008 9:38 am
Location: Russia, Krasnodar
Contact:

Re: Navigating maps

Post by Voker57 »

bartbes wrote:Nice!

@Xcmd: What? You're double-clicking LÖVE files? Pffff... Only thing that was 'wrong' with this package was the extension, wasn't too bad was it? I thought I had to unpack some more. (Linux doesn't care about extension, if set up properly). (Don't take this serious btw)
In fact, Linux thinks that this is zip file while not taking extension in account, and opens it as zip archive (as it in fact is one). And double-clicking still works only if package has .love extension.
User avatar
Voker57
Prole
Posts: 29
Joined: Mon Nov 03, 2008 9:38 am
Location: Russia, Krasnodar
Contact:

Re: Navigating maps

Post by Voker57 »

The look of this map tempts me to begin to wage wars/earn resourses on these isles, awesome.
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: Navigating maps

Post by Robin »

Very cool, and I second Voker57's comment ^^. Makes me itch to make a retro RTS with it.
Help us help you: attach a .love.
User avatar
Peter Hickman
Prole
Posts: 15
Joined: Fri Jan 30, 2009 8:19 am

Re: Navigating maps

Post by Peter Hickman »

Voker57 wrote:The look of this map tempts me to begin to wage wars/earn resourses on these isles, awesome.
I'm torn between going completely retro with an Empires clone, which would be so much easier, or heading towards a Civ clone.
User avatar
appleide
Party member
Posts: 323
Joined: Fri Jun 27, 2008 2:50 pm

Re: Navigating maps

Post by appleide »

This is pretty impressive ;) I'd go for the Empires clone since its much much easier. It took a whole team months/years to do Freeciv...
osuf oboys
Party member
Posts: 215
Joined: Sun Jan 18, 2009 8:03 pm

Re: Navigating maps

Post by osuf oboys »

Peter Hickman wrote:This is just a little experiment to generate a random map and navigate around it. All very basic. Clicking in either map window will refocus the map on the selected area and the arrow keys will move the map one tile at a time.

Hopefully the love file will be usable for those not blessed with Macs :)
Hi, regarding the map generator. How about keeping track of the height of the terrain instead of the terrain type and converting it later? (or keeping it for shadows) This should make it easier to produce maps that have both large and small isles, areas with plenty of land and areas with very little. Fairly sophisticated generators can be found by looking at e.g. the civilization games.

Your method of generating maps reminds me of Bouzy maps, popular in e.g. chess and computer go.

The drawing is much faster if you replace the images with rectangles of the same colour. The drawing will hopefully be more efficient some time in the future.
If I haven't written anything else, you may assume that my work is released under the LPC License - the LÖVE Community. See http://love2d.org/wiki/index.php?title=LPC_License.
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 47 guests