Jump to content
  • Advertisement
Sign in to follow this  
vbuser1338

making isometric maps

This topic is 5038 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

i am new to making isometric maps . i am interested in making a simple isometric rpg game very small . i just finsished my little rpg that i made for fun with map editor. But now i would like to make the same kind of this using blitblt if posible because i'm not that good with directx. can ne1 post some sites or tutorials that shows you how to create the isometric map? or anything that you would think would help me. thnx

Share this post


Link to post
Share on other sites
Advertisement
heh :)
maybe you wanna check out my editor ;) if you can use it/if you like it, i can give you the basic code for copying the tiles.
basically, my editor (still in progress but very usable) will help you create an isometric map and file based on my file structure. i think its very easy and quite flexible.
check it out with the link in my signature below, and if you like it/want to use it, let me know and ill PM you some code to load the map and copy the tiles :) (this code will be C++ by the way)

good luck in your quest to make your iso game :)
the_moo

Share this post


Link to post
Share on other sites
basically all i think i need is the equations for the postions on the tile and to tell when you clicked. if you kno what i mean
like simple 2d tile game is X \ tilewidth . and then where u have to copy the image two for tielbased you go x * tilewidth and u get it . i need those formulas and a brief explination if posible. thnx

Share this post


Link to post
Share on other sites
this is code i got off a little sample

Private Type MapPoint
x As Long
y As Long
End Type

P.x = (MapX - MapY) * (lngTileWidth / 2) + ((lngBoardSize * lngTileWidth) / 2) - (lngTileWidth / 2)
P.y = (MapX + MapY) * ((lngTileHeight / 2) - OffSetY)

Sec = StretchBlt(picScroll.hdc, P.x, P.y, lngTileWidth, lngTileHeight, picTile(Tile(MapX, MapY)).hdc, 0, 0, 48, 47, vbSrcAnd)
Sec = StretchBlt(picScroll.hdc, P.x, P.y, lngTileWidth, lngTileHeight, picMask(Tile(MapX, MapY)).hdc, 0, 0, 48, 47, vbSrcPaint)

that is vb could sum1 break that down for me it works but i can't seem to get the hang of the calculations . i get the types and stretchblt just not how they calculate where the tiles go and the offset there is used for.

if someone could break that down i would really appreciate it thnx

Share this post


Link to post
Share on other sites
sorry that code i have posted puts 0,0 at the bottom left corner of the map instead of top left.

like this
o is where it starts

x
x x
o x
x x
x

instead of 0,0 being here

o
x x
x x
x x
x
if you get what i mean
can sum1 please put some code that works
thnx

Share this post


Link to post
Share on other sites
i stumbled on this code and it seems to work

X = (x - y) * tilewidth
Y = (x + y) * tilewidth * .5

all i had to do is change tilewidth to tilewidth/2

but i still need some help with calculating where the user has clicked thnx

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!