xLIB Problem

Moderator: tr1p1ea

Post Reply
User avatar
d4vz
New Member
Posts: 37
Joined: Sat 18 Dec, 2004 4:20 am
Location: I'm... somewhere. What?

xLIB Problem

Post by d4vz »

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:

Code: Select all

:real(2,0,0,0,6,4,0,6,0,4,1,0,16,1
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
A revolution without dancing is a revolution not worth having.
User avatar
tr1p1ea
Maxcoderz Staff
Posts: 4141
Joined: Thu 16 Dec, 2004 10:06 pm
Location: I cant seem to get out of this cryogenic chamber!
Contact:

Post by tr1p1ea »

You must download v.601 again from ticalc.org ... i reuploaded it with a fix but it shares the same version name.
"My world is Black & White. But if I blink fast enough, I see it in Grayscale."
Image
Image
User avatar
d4vz
New Member
Posts: 37
Joined: Sat 18 Dec, 2004 4:20 am
Location: I'm... somewhere. What?

Post by d4vz »

:D Thanks! That was really killing me :x . It works quite perfectly now.
A revolution without dancing is a revolution not worth having.
Post Reply