commoncutscene.cpp
来自「VIGASOCO (VIdeo GAmes SOurce COde) Windo」· C++ 代码 · 共 32 行
CPP
32 行
// CommonCutscene.cpp
//
/////////////////////////////////////////////////////////////////////////////
#include "CommonCutscene.h"
#include "Game.h"
#include "Ghost.h"
#include "Pacman.h"
void NopCutsceneState::run()
{
// TODOSOUND: stop sound
// increments level state twice
theGame->states[PLAYING]->substate++;
theGame->states[PLAYING]->substate++;
}
void cutsceneMainLoop(bool slow)
{
// moves pacman and red ghost
theGame->pacman->run();
theGame->pacman->run();
if (!slow){
theGame->ghost[RED]->run();
}
theGame->ghost[RED]->run();
theGame->updateGhostAnimCounters();
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?