[SDL] How differently?
krzysztof posłuszny
wojownik266 at wp.pl
Wed Apr 2 10:49:15 PDT 2008
HI! I ask to write me how it it was been possible to write following
functions so in order to she made the same differently but without use
SDL_Flip(80). I'm sorry behind my English.
int kolysanie_statkami()
{
ball[0]=IMG_Load("czaszka.bmp");
ball[1]=IMG_Load("czaszka.bmp");
while(pl==false)
{
for(int i=0;i<=50;++i)
{
apply_surface(++i, 40, ball[0], screen );
apply_surface(++i+80, 40, ball[1], screen );
//Szybkosc kołysania
SDL_Delay(80);
SDL_Flip(screen);
}
for(int j=50;j>=0;--j)
{
apply_surface(--j, 40, ball[0], screen );
apply_surface(--j+80,40, ball[1], screen );
//Szybkosc kołysania
SDL_Delay(80);
SDL_Flip(screen);
}
}
}
More information about the SDL
mailing list