Home » Community » Forums » » Isometric 'n' Hexagonal Maps Part I
  Intel sponsors gamedev.net search:   
[Control Panel] [Register] [Bookmarks] [Who's Online] [Active Topics] [Stats] [FAQ] [Search]

Add Forum to Favorites |  Send Topic To a Friend | View Forum FAQ | Track this topic


 Last Thread Next Thread 
 Isometric 'n' Hexagonal Maps Part I
Post Reply 
This is a great article, but I am a bit unclear as to the order of operations in these equations:

PlotX=MapX*Width+(MapY AND 1)*(Width/2)
PlotY=MapY*HeightOverLapping-YOffset

I'm pretty sure I know what they are :

PlotX = (MapX*Width) + ( (MapY AND 1) * (Width / 2) )
PlotY = (MapY * HeightOverLapping) -YOffset

but if anybody could confirm that, I would appreciate it.

Thanks!






 User Rating: 1015   |  Rate This User  Send Private MessageView Profile Report this Post to a Moderator | Link

Yeah. That's correct.

 User Rating: 2088   |  Rate This User  Send Private MessageView ProfileView Journal Report this Post to a Moderator | Link

Great article!

I hope you will write a sample programme someday!

Thanks for your work,
Rob

 User Rating: 1015   |  Rate This User  Send Private MessageView Profile Report this Post to a Moderator | Link

I hope someone reads this and can help me.... i can't get the mouse correct. I do like the article sais but it won't get the right tile.....please someone help me
/Keba

 User Rating: 1015    Report this Post to a Moderator | Link

Is it just me, or is the mouse coordinates wrong for this tutorial? There isn't a point at which the x coordinate is increased (RegionDX is either set to -1 or 0. There is no 1.)

 User Rating: 1518   |  Rate This User  Send Private MessageView ProfileView JournalView GD Showcase Entries Report this Post to a Moderator | Link

Can anyone confirm that the algorithm for plotting out tiles works? i'm trying with an 80x80 image, the rhombus takes up the lower 80x40 of the image.

i can not get them to space out correctly using this algorithm...unless i'm just doing something wrong (which is 110% possible).

I'd be glad to send me code to whomever to have a look. I'm using C++ and DirectX9.

thanks.


also...if anyone can explain this a little better or something, i'm kind of guessing as to what PlotX, PlotY, Height, Width, etc are....

I'm using a 2D array of sprites...each sprite has a D3DXVECTOR3 position an unsigned int for height and width...and a D3DXVECTOR3 center (center shouldn't matter...i'm drawing it based on its position)

i have 2 #defines at the top for X and Y of the map...right now i'm just trying to do 5x5 (using the setup in this tutorial)...so i have my 2D array of Sprites declared like: Sprite map[MAP_X][MAP_Y]

sorry this is a bit broken up and hard to read...it's 6am and i've been trying to figure out what's wrong for quite some time now.. it's almost seeming like for some reason it thinks my image is larger than it is or something.

if anyone can help let me know...i'll email you my code so you can take a look at it or whatever. i'm using Visual Studio 2005...but i can just send the CPPs or whatever.

 User Rating: 1036   |  Rate This User  Send Private MessageView Profile Report this Post to a Moderator | Link

All times are ET (US)

Post Reply
 Last Thread Next Thread 
Forum Rules:
You may not post new threads
You may post replies
You may not edit your posts
You may not use HTML in your posts
Jump To:
Administrative Options: