Пример #1
0
        private bool PlayGame(Game thisGame)
        {
            if (bLeftPressed)
            {
                currGame.Left();
            }
            if (bRightPressed)
            {
                currGame.Right();
            }
            currGame.Thrust(bUpPressed);

            currGame.DrawScreen(screenCanvas, ClientSize.Width, ClientSize.Height, ref score);

            // If the game is over, display the title screen
            if (currGame.Done())
            {
                gameStatus = Modes.TITLE;
            }

            return(gameStatus == Modes.GAME);
        }