#110912 - lostgame - Sat Dec 02, 2006 8:23 pm
I created a simple scrolling platformer, and I find the tiles dissapear after going below 0.
What's wrong here?
What's wrong here?
Code: |
/* block sprites */
for (n=1; n<=numblocks; n++) { sprites[n].attribute0 = COLOR_256 | SQUARE | blocky[n-1]; sprites[n].attribute1 = SIZE_8 | blockx[n-1]; sprites[n].attribute2 = 512+16; } //end for |
Code: |
/* block sprites */ for (n=0; n<numblocks; n++) { sprites[n].attribute0 = COLOR_256 | SQUARE | blocky[n]; sprites[n].attribute1 = SIZE_8 | blockx[n]; sprites[n].attribute2 = 512+16; } //end for |