Map Engine

1 view
Skip to first unread message

RB[0]

unread,
Aug 26, 2010, 2:17:14 PM8/26/10
to GalaxyMage Redux Dev
Robert, how soon can you get the mouse pos to being correct for isometric?
Jeremy, how soon can you get me a tile?

I am now starting to write the actual in-game interaction code (yay) but I'm gonna need these shortly...

Robert Ramsay

unread,
Aug 26, 2010, 2:44:34 PM8/26/10
to galaxymage...@googlegroups.com
I've been thinking about it all day. I have two formulas. But I'm not
sure if they're right. They don't feel right.

Row = int(((cx-mx)+(my-cy))/tile_size[1])
Col = int(((mx+my)) - (cy-cx))/tile_size[0])

Not sure if i'm going to have to break out the trig functions or not.
But I might. I get off of work at 5pm (eastern) so I can't really test
it for another 3 hours.

> --
> You received this message because you are subscribed to the Google Groups
> "GalaxyMage Redux Dev" group.
> To post to this group, send email to galaxymage...@googlegroups.com.
> To unsubscribe from this group, send email to
> galaxymage-redux...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/galaxymage-redux-dev?hl=en.
>

RB[0]

unread,
Aug 26, 2010, 2:49:50 PM8/26/10
to galaxymage...@googlegroups.com
Ok, that is about when I have to go to work, so I will have to implement that stuff late tonight or tomorrow
Reply all
Reply to author
Forward
0 new messages