[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Taking a part from character
Christian Reiniger <warewolf@mayn.de> wrote:
> Wille Huuskonen wrote:
> >I loaded my sprites from a file to a character 'cars'. How I put
> >0 , 0 - 10 , 10 from 'cars' to a character car1?
>
> Wait a second - what do you want to know exactly? You're using some
> toolkit, right? Which one? And perhaps you could post some example code.
No, I only don't know C enough to make this.
I have a character here: (this is just a example)
unsigned char cars[9*6]={
0, 3, 3, 0, 0, 0, 3, 3, 0,
9, 9, *9, *9, 9, 9, 8, 8, 0,
6, 4, *4, *4, 4, 6, 7, 7, 8,
2, 4, *4, *4, 4, 2, 7, 7, 8,
1, 1, 1, 1, 1, 1, 5, 5, 0,
0, 3, 3, 0, 0, 0, 3, 3, 0};
And I want to get those bytes(?) marked with * to a
char[2*3] car.