#25544 - strider - Tue Aug 24, 2004 8:06 pm
can anyone tell me what i'm doing wrong? I'm trying to make a tiled background:
//copy the tile palette to the bg palette
for(i = 0; i < 256; i ++){
BG_PaletteMem[i] = grassPalette[i];
}
for(i = 0; i < 32; i ++){
CharBB[i] = 0x3F3F;
}
for(i = 32; i < 64; i ++){
CharBB[i] = grassData[i];
}
x = 5; y = 5;
//place the grass tile at position (5,5)
ScreenBB[x+(32*y)] = 1;
I'm just getting a black square where the grass tile should be. however if i do:
//copy the tile palette to the bg palette
for(i = 0; i < 256; i ++){
BG_PaletteMem[i] = grassPalette[i];
}
for(i = 0; i < 32; i ++){
CharBB[i] = grassData[i];
}
x = 5; y = 5;
ScreenBB[x+(32*y)] = 0;
it works but the entire screen is filled with grass blocks (instead of just position (5,5))
//copy the tile palette to the bg palette
for(i = 0; i < 256; i ++){
BG_PaletteMem[i] = grassPalette[i];
}
for(i = 0; i < 32; i ++){
CharBB[i] = 0x3F3F;
}
for(i = 32; i < 64; i ++){
CharBB[i] = grassData[i];
}
x = 5; y = 5;
//place the grass tile at position (5,5)
ScreenBB[x+(32*y)] = 1;
I'm just getting a black square where the grass tile should be. however if i do:
//copy the tile palette to the bg palette
for(i = 0; i < 256; i ++){
BG_PaletteMem[i] = grassPalette[i];
}
for(i = 0; i < 32; i ++){
CharBB[i] = grassData[i];
}
x = 5; y = 5;
ScreenBB[x+(32*y)] = 0;
it works but the entire screen is filled with grass blocks (instead of just position (5,5))