// "Screen wipe in", bottom to top void ScreenEffects::vfx13(Graphics::Surface *surface, byte *palette, byte *newPalette, int colorCount) { for (int y = 312; y > -70; y -= 10) { copyFxRect(surface, 0, y, 320, y + 80); //setBlendedPalette(palette, newPalette, colorCount, y + 70, 260); // original behavior _screen->updateScreenAndWait(25); } //setPalette(palette); // original behavior }
// "Screen wipe in", right to left void ScreenEffects::vfx11(Graphics::Surface *surface, byte *palette, byte *newPalette, int colorCount) { for (int x = 312; x > -56; x -= 8) { copyFxRect(surface, x, 0, x + 64, 200); //setBlendedPalette(palette, newPalette, colorCount, x + 56, 368); // original behavior _screen->updateScreenAndWait(25); } //setPalette(palette); // original behavior }
// "Screen wipe in", bottom to top void ScreenEffects::vfx13(Graphics::Surface *surface, byte *palette, byte *newPalette, int colorCount) { startBlendedPalette(palette, newPalette, colorCount, 260); for (int y = 312; y > -70; y -= 10) { copyFxRect(surface, 0, y, 320, y + 80); stepBlendedPalette(); _screen->updateScreenAndWait(25); } setPalette(palette); }
// "Screen wipe in", right to left void ScreenEffects::vfx11(Graphics::Surface *surface, byte *palette, byte *newPalette, int colorCount) { startBlendedPalette(palette, newPalette, colorCount, 368); for (int x = 312; x > -56; x -= 8) { copyFxRect(surface, x, 0, x + 64, 200); stepBlendedPalette(); _screen->updateScreenAndWait(25); } setPalette(palette); }
void ScreenEffects::vfx16(Graphics::Surface *surface, byte *palette, byte *newPalette, int colorCount) { int16 y = 8; for (int i = 0; i < 27; i++) { copyFxRect(surface, 0, 100 - y, 320, 100 + y); y += 5; //setBlendedPalette(palette, newPalette, colorCount, i, 27); // original behavior _screen->updateScreenAndWait(25); } //setPalette(palette); // original behavior }
void ScreenEffects::vfx15(Graphics::Surface *surface, byte *palette, byte *newPalette, int colorCount) { int16 x = 8; for (int i = 0; i < 27; i++) { copyFxRect(surface, 160 - x, 0, 160 + x, 200); x += 8; //setBlendedPalette(palette, newPalette, colorCount, i, 27); // original behavior _screen->updateScreenAndWait(25); } //setPalette(palette); // original behavior }
void ScreenEffects::vfx16(Graphics::Surface *surface, byte *palette, byte *newPalette, int colorCount) { int16 y = 8; startBlendedPalette(palette, newPalette, colorCount, 27); for (int i = 0; i < 27; i++) { copyFxRect(surface, 0, 100 - y, 320, 100 + y); y += 5; stepBlendedPalette(); _screen->updateScreenAndWait(25); } setPalette(palette); }
void ScreenEffects::vfx15(Graphics::Surface *surface, byte *palette, byte *newPalette, int colorCount) { int16 x = 8; startBlendedPalette(palette, newPalette, colorCount, 27); for (int i = 0; i < 27; i++) { copyFxRect(surface, 160 - x, 0, 160 + x, 200); x += 8; stepBlendedPalette(); _screen->updateScreenAndWait(25); } setPalette(palette); }
// "Checkerboard" effect void ScreenEffects::vfx09(Graphics::Surface *surface, byte *palette, byte *newPalette, int colorCount) { for (int i = 0; i < 8; i++) { copyFxRect(surface, 0, 0, 320, 200); // We set the final palette here, once setBlendedPalette(palette, newPalette, colorCount, i * 4 + 3, 32); // The original behavior follows - the end result is the same, though //for (int j = 0; j < 4; j++) // setBlendedPalette(palette, newPalette, colorCount, i * 4 + j, 32); _screen->updateScreenAndWait(25); } setPalette(palette); }