xLIB Problem
Posted: Fri 28 Apr, 2006 2:17 am
I'm trying to display a 6x4 tilemap with 16x16 sprites (the entire screen, in other words.) Now, this seems like it would be rather simple, but I just can't seem to get it to work.
My matrix ([A]) looks like this:
[1 1 1 1 1 1]
[1 0 0 0 0 1]
[1 0 0 0 0 1]
[1 1 1 1 1 1]
and picture-wise (Pic 1), my 16x16 sprite is here (X):
0 X 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0
My code looks like this:
And, as far as I can tell, that should make a nice rectangle of 16x16 sprites around the edge of the screen. However, is displays this (zeros are just empty spaces, X is the sprite from Pic 1):
X X X 0 0 0
X 0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0
So the top left portion is correct, but the other three-fourths of the screen are not displaying. I've checked over my code, and I can't find anything wrong with it. Am I just a complete moron missing something obvious?
Thanks for your help.
EDIT: Forgot to mention, I'm using xLIB v.601b (which I believe is the most current,) and this is on a TI-84+ SE
My matrix ([A]) looks like this:
[1 1 1 1 1 1]
[1 0 0 0 0 1]
[1 0 0 0 0 1]
[1 1 1 1 1 1]
and picture-wise (Pic 1), my 16x16 sprite is here (X):
0 X 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0
My code looks like this:
Code: Select all
:real(2,0,0,0,6,4,0,6,0,4,1,0,16,1
X X X 0 0 0
X 0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0
So the top left portion is correct, but the other three-fourths of the screen are not displaying. I've checked over my code, and I can't find anything wrong with it. Am I just a complete moron missing something obvious?
Thanks for your help.
EDIT: Forgot to mention, I'm using xLIB v.601b (which I believe is the most current,) and this is on a TI-84+ SE