Skip to content
Create a gist now

Instantly share code, notes, and snippets.

Embed URL


Subversion checkout URL

You can clone with
Download ZIP
screen and isometric space
Screen -> Isometric space equations
iX = (((ScreenX) / tileWidth) - ((ScreenY) / tileHeight));
iY = (((ScreenX) / tileWidth) + ((ScreenY) / tileHeight));
Isometric -> Screen space equations
ScreenX = (iX + iY) * tileWidth / 2;
ScreenY = (iY - iX) * tileHeight / 2;
Assuming the isometric coordinating system goes as this:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.