Hehe, lets get it started off with some noob questions :geek: (this is k3v from CK btw 8-) )
Planning to take on CK with this eh?
Can you show me how to get three colours happening?
i assume its something like this:
unsigned char buffer1[1024];
unsigned char buffer2[1024];
unsigned char buffer3[1024];
unsigned char box_one[16] = {0xFF,0xFF,0x80,0x0F,0x80,0x0F,0x80,0x0F,0x80,0x0F,0x80,
0x0F,0x80,0x0F,0x80,0x0F,0x80,0x0F,0x80,0x0F,0x80,0x0F,0x80,0x0F,0x80,0x0F,0x80,
0x0F,
0x80,0x0F,0xFF,0xFF};
unsigned char box_two[16] ={0xFF,0xFF,0x80,0xF1,0x80,0xF1,0x80,0xF1,0x80,0xF1,0x80,
0xF1,0x80,0xF1,0x80,0xF1,0x80,0xF1,0x80,0xF1,0x80,0xF1,0x80,0xF1,0x80,0xF1,0x80,
0xF1,
0x80,0xF1,0xFF,0xFF};
unsigned char box_three[16] ={0xFF,0xFF,0x8F,0x01,0x8F,0x01,0x8F,0x01,0x8F,0x01,0x8F,
0x01,0x8F,0x01,0x8F,0x01,0x8F,0x01,0x8F,0x01,0x8F,0x01,0x8F,0x01,0x8F,0x01,0x8F,
0x01,
0x8F,0x01,0xFF,0xFF};
memset(&buffer1, 0, 1024);
memset(&buffer2, 0, 1024);
memset(&buffer3, 0, 1024);
GrayInit3(somevalue1, somevalue2, somevalue3);
GrayLinkBuffers3(buffer1, buffer2, buffer3);
while (IsKeyDown(KEY_CTRL_EXIT) != 1) {
DrawSprite16(52, 24, buffer1, box_one, 0);
DrawSprite16(52, 24, buffer2, box_two, 0);
DrawSprite16(52, 24, buffer3, box_two, 0);
}
Reset_Calc();
return 0;
I just dont know the GreyInit3(); values required. Or am i completely off the plot alltogether!?
My project features lots of 12x12 sprites, is it possible for you to add support for this size sprite, or should i just use the 16x16 functions and squash them together, or should i use the CopyVRAM(); function?