Hi all. Some days ago i see in some old game called Mickey-Mania (1994) (sega-megadrive console) a nice easy effect which is widely used in games in the past and still. This effect used for the same reassons like fade in/out effects: i.e. change scenes not by 'static' way, but for making 'smooth' feeling. Effect looks like this:
I.e. we have picture, and we have 'black area' which by 'circle' loop filled picture by black color (kind of fade down). steps are: full_pict,scene1,scene2,scene3,scene4,black_screen
And in other way: we have fully black color screen, and then picture are drawing by circle way and refill by yourself black area. Steps are: black_screen,scene4,scene3,scene2,scene1,full_pict ).
So, i have fucntion which draw a picture (x/y). I have double-buffering fucntion, how these easy effects can be realised ?
I mean somethink like:
void pict_2_black()
{
draw_picture(x,y);
draw_black_area_circle;
flip_for_double_buffer;
}
At moment i think only about drawing picture always in full size, and only change routine for black fill stuff. Or maybe will be better always fill screen by black color, and draw picture by some x/y ?