working on 2p

This commit is contained in:
2021-08-24 13:01:33 +02:00
parent 52ea512eab
commit b61fd84e22
8 changed files with 199 additions and 147 deletions

View File

@@ -467,7 +467,10 @@ void Director::runTitle()
void Director::runGame()
{
mGame = new Game(2, mRenderer, mFileList, mTextStrings, mInput1, mInput2, false);
if (mSection.subsection == GAME_SECTION_PLAY_1P)
mGame = new Game(1, mRenderer, mFileList, mTextStrings, mInput1, mInput2, false);
if (mSection.subsection == GAME_SECTION_PLAY_2P)
mGame = new Game(2, mRenderer, mFileList, mTextStrings, mInput1, mInput2, false);
setSection(mGame->run());
delete mGame;
}