Hello, how's it going?
I'm making a game (in Liberty Basic 3.01) with 3D-icons like those in Civilization 2, they look like 3D but perhaps they aren't in a formal sense, etc... Anyway, this is my theory:
First draw a 3D-style icon grid on screen (looking like Civilization 2),
with horisontal and slanted (about 30 deg. etc) icon borders, like so:
<------- Icon (Hmm... I hope this will appear in mono-
-------- spaced font!)
Then, in the code, visualize a normal straight-angle icon grid (not drawn on screen). Read MouseX and MouseY to determine which "straight" icon the mouse is over by dividing the MouseX & MouseY by the icon size (48x48 etc). But to get the *3D-icon* number we need to offset the MouseX coordinate we have by a certain amount depending of the MouseY, and so find out witch 3D-icon the user clicked on screen (i.e. slant the straight angle icon grid...).
Does this make any sense? Is there a better/easier way of doing it? Any example code to get?