[SDL] OFF Topic Iso Mouse
Alan Wolfe
Atrix2 at cox.net
Wed Apr 25 20:31:47 PDT 2007
I myself haven't worked with iso before but you know a great place to ask
general game programming questions is the gameprogrammer.com mailing list,
you should go check it out (:
_____
From: sdl-bounces at lists.libsdl.org [mailto:sdl-bounces at lists.libsdl.org] On
Behalf Of Patricia Curtis
Sent: Wednesday, April 25, 2007 6:28 PM
To: sdl at lists.libsdl.org
Subject: [SDL] OFF Topic Iso Mouse
Hi Guys
Sorry for an off topic question but i need help with some maths and
i sure some of you have a better maths background than me, I am writing an
isometric game (not tile based) and i translate my screen mouse to isometric
no problem as i am easily working out the x and z cords on the floor of my
isometric room with,
ClickX = (int)((2*Mousey-Mousex)/2);
ClickZ = (int)Mousex+ClickX;
then i check to see if its within my room box with a simple box check and it
works a treat, but when the mouse is beyond the bounds of the room floor
area shown in blue it could be on a wall so i need to work out the mouse
position on the vertical walls green and red.
so if anyone can help me i would be grateful,
Trish
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20070425/799e5158/attachment.htm>
More information about the SDL
mailing list