Hi
Im using easy ce and have sprites on screen but i would like to know how to do "sinus" effects like in the old C64 demos where the sprites would all move together in a cool pattern can you help me please
Thank you
old demo effects1
2
3
4
5
6
7
8
9
10
11
12
13
...
float ang = 0;
while (1)
{
for (int s=0; s<numSprites; s++)
{
sprite[s].x -= SPEED;
sprite[s].y = sin(DEG2RAD(ang+(s<<1)));
}
ang += 5;
}
...
13 lines; 4 keywds; 5 nums; 45 ops; 0 strs; 0 coms Syntactic Coloring v0.4 - Dan East