本文整理汇总了C++中Viewer::displayPrepare方法的典型用法代码示例。如果您正苦于以下问题:C++ Viewer::displayPrepare方法的具体用法?C++ Viewer::displayPrepare怎么用?C++ Viewer::displayPrepare使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Viewer
的用法示例。
在下文中一共展示了Viewer::displayPrepare方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: Restart
void dodGame::Restart()
{
Uint32 ticks1, ticks2;
object.Reset();
creature.Reset();
parser.Reset();
player.Reset();
scheduler.Reset();
viewer.Reset();
hasWon = false;
dungeon.VFTPTR = 0;
scheduler.SYSTCB();
object.CreateAll();
player.HBEATF = 0;
player.setInitialObjects(false);
viewer.displayPrepare();
viewer.displayCopyright();
viewer.display_mode = Viewer::MODE_TITLE;
viewer.draw_game();
// Delay with "PREPARE!" on screen
ticks1 = SDL_GetTicks();
do
{
oslink.process_events();
ticks2 = SDL_GetTicks();
} while (ticks2 < ticks1 + 2500);
creature.NEWLVL();
INIVU();
viewer.PROMPT();
}
示例2: COMINI
// Game initialization
void dodGame::COMINI()
{
Uint32 ticks1, ticks2;
scheduler.SYSTCB();
object.CreateAll();
player.HBEATF = 0;
viewer.clearArea(&viewer.TXTSTS);
viewer.clearArea(&viewer.TXTPRI);
viewer.VXSCAL = 0x80;
viewer.VYSCAL = 0x80;
viewer.VXSCALf = 128.0f;
viewer.VYSCALf = 128.0f;
AUTFLG = viewer.ShowFade(Viewer::FADE_BEGIN);
//AUTFLG = scheduler.fadeLoop();
//AUTFLG = false; // TAKE THIS LINE OUT !!!!!!!!!! [Prevents demo from starting]
player.setInitialObjects(AUTFLG);
viewer.displayPrepare();
viewer.display_mode = Viewer::MODE_TITLE;
viewer.draw_game();
// Delay with "PREPARE!" on screen
ticks1 = SDL_GetTicks();
do
{
oslink.process_events();
ticks2 = SDL_GetTicks();
} while (ticks2 < ticks1 + viewer.prepPause);
creature.NEWLVL();
if (AUTFLG)
{
// do map
viewer.display_mode = Viewer::MODE_TITLE;
viewer.showSeerMap = true;
--viewer.UPDATE;
viewer.draw_game();
// wait 3 seconds
ticks1 = SDL_GetTicks();
do
{
oslink.process_events();
ticks2 = SDL_GetTicks();
} while (ticks2 < ticks1 + 3000);
}
INIVU();
viewer.PROMPT();
}