void Game::displayTitleBitmap() { loadWGP("..\\menu\\nointro.wgp"); playMusic("..\\midi\\title.mid"); _stub->setPalette(_bitmapBuffer0 + kOffsetBitmapPalette, 256); _stub->copyRect(0, 0, kGameScreenWidth, kGameScreenHeight, _bitmapBuffer1.bits, _bitmapBuffer1.pitch); _stub->copyRectWidescreen(kGameScreenWidth, kGameScreenHeight, _bitmapBuffer1.bits, _bitmapBuffer1.pitch); }
void Game::playBitmapSequenceDemo() { const char *bitmapList[] = { "..\\wgp\\title.bmp", "..\\wgp\\title1.bmp", "..\\wgp\\title2.bmp" }; for (int i = 0; i < 3; ++i) { loadWGP(bitmapList[i]); _stub->setPalette(_bitmapBuffer0 + kOffsetBitmapPalette, 256); _stub->copyRect(0, 0, kGameScreenWidth, kGameScreenHeight, _bitmapBuffer1.bits, _bitmapBuffer1.pitch); _stub->updateScreen(); do { _stub->sleep(10); _stub->processEvents(); if (_stub->_quit) { return; } } while (!_stub->_pi.enter); _stub->_pi.enter = false; } }