0 Members and 2 Guests are viewing this topic.
Lookin' good. Keep up the awesome work.How much memory does the color version require? And the monochrome?
12fPart(T/12)+.0001(fPart(T/12)=1/3) // x offset, in number of tiles, from the top-left sprite (origin)//The "+.0001..." part is to fix rounding issues with my algorithm, so if the tile is in the 4th column, it'll actually display using this//If you're wondering, this isn't the problem with my 13th tile issue. This doesn't trigger as fPart(13/12) = 1/12, and not 4/12.8int(T/12) // y offset, in number of pixels, from the top-left sprite (origin)//T is the inputted tile ID. For the issue that I'm having, T is 13.
Just as a disclaimer, I haven't tried it with hard-coded values to display the 13th sprite, although realistically there shouldn't be any difference between my algorithm and the hard-coded values, and their outputs.
Server load over the past 5, 10 and 15 minutes respectively: 0.81, 0.62, 0.63
Page created in 0.284 seconds with 42 queries.