Welcome to Dream.In.Code
Getting Help is Easy!

Join 132,655 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,155 people online right now. Registration is fast and FREE... Join Now!




Vector-based tiles

 
Reply to this topicStart new topic

Vector-based tiles, scalable tile based map

Noldona
post 8 Sep, 2008 - 07:29 AM
Post #1


Addicted to DIC

****
Joined: 2 Jul, 2002
Posts: 910



Thanked 2 times
My Contributions


I have been kicking around an idea for a while now and have been unable to figure out how to actually do it. The idea is to created a 2D tile based mapping program (this will be used for map creation for table top RPGs but could also be used in video games). However, here is the catch. I want to make it so I can zoom in and out on the map and have the tiles scale accordingly. The user should be able to select tiles from a toolbox and design a map for something like a dungeon or town. Then be able to zoom out and see what that town looks like from higher up with more of the world map in view. This like the satellite images on Google Earth. I figured vector art would be the best option for this since it would keep the size of the file down and would allow for the scaling without messing up the image. However, I can't find any info on working on stuff like this. I have done tile based games before using regular raster images, I have just never worked with vector images in code before. If you could point to other threads, articles, or tutorials about how to do this it would be appreciated.
User is offlineProfile CardPM

Go to the top of the page

grimpirate
post 8 Sep, 2008 - 11:25 AM
Post #2


D.I.C Head

Group Icon
Joined: 3 Aug, 2006
Posts: 187



Thanked 5 times

Dream Kudos: 375
My Contributions


I can't point to a particular source, but the idea you're trying to illustrate is a basic concept behind Flash games. There's one in particular that comes to mind: http://www.dofus.com/ From what I recall their character sprites are vector-based, so you could zoom in and out without any loss of quality. So I suppose it all comes down to your graphics engine supporting vector graphics. If it doesn't you'd have to create one yourself.
User is offlineProfile CardPM

Go to the top of the page

stayscrisp
post 8 Sep, 2008 - 01:28 PM
Post #3


D.I.C Regular

***
Joined: 14 Feb, 2008
Posts: 258



Thanked 6 times
My Contributions



http://www.tonypa.pri.ee/tbw/tut00.html
icon_up.gif
User is offlineProfile CardPM

Go to the top of the page

bobjob
post 8 Sep, 2008 - 05:20 PM
Post #4


D.I.C Head

**
Joined: 29 Mar, 2008
Posts: 61



Thanked 1 times
My Contributions


Here is an example of a tile map editor that has a zoom in/out function

Juddmans 2d Map editor
User is online!Profile CardPM

Go to the top of the page

Noldona
post 12 Sep, 2008 - 05:33 AM
Post #5


Addicted to DIC

****
Joined: 2 Jul, 2002
Posts: 910



Thanked 2 times
My Contributions


Thanks for the links, however after some review of them they seem to be about flash games with the exception of the link by bobjob. While this info might be useful at a later date if I get around to learning flash, my current project which this will become part of is being written in Java. So hopefully that last link will be able to help me out a bit.
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 11/23/08 05:26AM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month