mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-15 06:08:35 +00:00
AVALANCHE: Move/rename/implement SEU::titles().
This commit is contained in:
parent
c5e7aa8e93
commit
616d9959f3
@ -697,6 +697,39 @@ void GraphicManager::helpDrawHighlight(byte which, Color color) {
|
||||
drawRectangle(Common::Rect(466, 38 + which * 27, 555, 63 + which * 27), color);
|
||||
}
|
||||
|
||||
/**
|
||||
* @remarks Originally called 'titles'
|
||||
*/
|
||||
void GraphicManager::seuDrawTitle() {
|
||||
Common::File file;
|
||||
|
||||
if (!file.open("shoot1.avd"))
|
||||
error("AVALANCHE: ShootEmUp: File not found: shoot1.avd");
|
||||
|
||||
const uint16 width = 320;
|
||||
const uint16 height = 200;
|
||||
|
||||
Graphics::Surface picture = loadPictureRaw(file, width, height);
|
||||
|
||||
Graphics::Surface doubledPicture;
|
||||
doubledPicture.create(width * 2, height, Graphics::PixelFormat::createFormatCLUT8());
|
||||
|
||||
// These cycles are for doubling the picture's width.
|
||||
for (int x = (width * 2) - 2 ; x >= 0; x -= 2) {
|
||||
for (int y = 0; y < height; y++) {
|
||||
*(byte *)doubledPicture.getBasePtr(x, y) = *(byte *)doubledPicture.getBasePtr(x + 1, y) = *(byte *)picture.getBasePtr(x / 2, y);
|
||||
}
|
||||
}
|
||||
|
||||
drawPicture(_surface, doubledPicture, 0, 0);
|
||||
refreshScreen();
|
||||
|
||||
picture.free();
|
||||
doubledPicture.free();
|
||||
|
||||
file.close();
|
||||
}
|
||||
|
||||
/**
|
||||
* This function mimics Pascal's getimage().
|
||||
*/
|
||||
|
@ -107,6 +107,9 @@ public:
|
||||
void helpDrawButton(int y, byte which);
|
||||
void helpDrawHighlight(byte which, Color color);
|
||||
|
||||
// Shoot em' up's functions:
|
||||
void seuDrawTitle();
|
||||
|
||||
void clearAlso();
|
||||
void clearTextBar();
|
||||
void setAlsoLine(int x1, int y1, int x2, int y2, Color color);
|
||||
|
@ -39,7 +39,7 @@ ShootEmUp::ShootEmUp(AvalancheEngine *vm) {
|
||||
}
|
||||
|
||||
void ShootEmUp::run() {
|
||||
titles();
|
||||
_vm->_graphics->seuDrawTitle();
|
||||
setup();
|
||||
initRunner(20, 70, 48, 54, _vm->_rnd->getRandomNumber(4) + 1, _vm->_rnd->getRandomNumber(3) - 2);
|
||||
initRunner(600, 70, 48, 54, _vm->_rnd->getRandomNumber(4) + 1, _vm->_rnd->getRandomNumber(3) - 2);
|
||||
@ -128,10 +128,6 @@ void ShootEmUp::initRunner(int16 xx, int16 yy, byte f1, byte f2, int8 ixx, int8
|
||||
warning("STUB: ShootEmUp::initRunner()");
|
||||
}
|
||||
|
||||
void ShootEmUp::titles() {
|
||||
warning("STUB: ShootEmUp::titles()");
|
||||
}
|
||||
|
||||
void ShootEmUp::moveAvvy() {
|
||||
warning("STUB: ShootEmUp::moveAvvy()");
|
||||
}
|
||||
|
@ -58,7 +58,6 @@ private:
|
||||
void instructions();
|
||||
void setup();
|
||||
void initRunner(int16 xx, int16 yy, byte f1, byte f2, int8 ixx, int8 iyy);
|
||||
void titles();
|
||||
void moveAvvy();
|
||||
void readKbd();
|
||||
void animate();
|
||||
|
Loading…
Reference in New Issue
Block a user