Krzysztof Mossakowski
Windows Programming
2005 - Tasks
Bitmaps, flicker-free drawing
Sample task
Kill the bird
Demonstration
Bitmaps
Functionality:
mouse movement - moving of the gun tube
left mouse button down - shot (only one bullet visible on the screen, moving with constant speed)
random altitude and speed of the bird
Technical issues:
sky - Sky.bmp drawn tiled (without scaling)
the bird - animation has 8 frames (Bird0#.bmp), transparent color is [0, 255, 255]
no flickering is acceptable
allow to resize the window
speed of drawing should be as fast as in the demonstration application
Using of TransparentBlt funcion is forbidden
(create dynamically masks using functions: SetPixel(), GetPixel())