Might be brainfart time, but I don't get it...
My expectation is simply that the image should shrink to nothingness in 50 frames time. Instead, I see no change. What obvious mistake am I making?!? Thanks all.
- Code:
// counter is an int set to 0 when this starts
// player_pos is a POINT set to something like 100,100
// The player_image surface being blitted is 22x41
// This is in ProcessNextFrame...
GDBLTFX gdbltfx;
gdbltfx.dwRotationScale = 100 - (counter * 2);
backbuffer.Blt(CRect(player_pos.x, player_pos.y, player_pos.x + 22, player_pos.y + 41),
player_image, NULL, GDBLT_KEYSRC | GDBLT_ROTATIONSCALE, &gdbltfx;);
counter = counter + 2;
if (counter > 50) {
resetGame();
}
My expectation is simply that the image should shrink to nothingness in 50 frames time. Instead, I see no change. What obvious mistake am I making?!? Thanks all.