This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: http://i.imgur.com/aUM4g.png |
NewerOlder