Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on OpenSC2K – An Open Source Remake of SimCity 2000. Parent comment
scrx = mapy16 - mapx16;
scry = mapx8 + mapy8 - GetSurfaceHeight(mapx,mapy)*12;
IIRC, this assumes origin is in top most tile, with increasing Y going down. So each step the terrain increases, you move the tile you draw up 12 pixels higher from the lowest point.
There are no comments on this comment yet.
scrx = mapy16 - mapx16;
scry = mapx8 + mapy8 - GetSurfaceHeight(mapx,mapy)*12;
IIRC, this assumes origin is in top most tile, with increasing Y going down. So each step the terrain increases, you move the tile you draw up 12 pixels higher from the lowest point.