system
June 13, 2007, 6:37pm
1
Is there a limit to the size of a sprite. when i code
Sprite wave_hw = Sprite(
16, 6,
B0100010010000010,
B0100010010000010,
B0111110010010010,
B0100010010101010,
B0100010010101010,
B0100010001000100
);
I get error: 'B0100010010000010' was not declared in this scope
I'm not sure how I'm supposed to declare it.
mellis
June 13, 2007, 6:59pm
2
The B-prefixed constants only go up to 8 bits (255). You can put two of them together, though, e.g. instead of B0111110010010010, use: (B01111100 << 8) | B10010010
system
June 13, 2007, 7:52pm
3
Thanks, also theres no way to create a sprite array? i tried declaring like this
Sprite myArray[3];
myArray[0] = Sprite(
8, 6,
B01000100,
B01000100,
B01111100,
B01000100,
B01000100,
B01000100
);
but it doesnt seem to work, did i code it wrong or is it just not allowed?
mellis
June 13, 2007, 11:31pm
4
You could do something like this:
Sprite sprites[2] = { Sprite(2, 2, B11, B01), Sprite(2, 2, B11, B01) };