Example #1
0
        public string getStatus()
        {
            int    gameStatus = BubbleHolder.checkGameStatus();
            string toRet;

            if (gameStatus == 0)
            {
                //Console.WriteLine("You have won the game");//win
                toRet = ("You have won the game! with score:" + BubbleHolder.score);
                if (CurrentLevel == 1)
                {
                    //changeLevel();
                }
                else
                {
                    //Game.Exit();
                }
            }
            else if (gameStatus == 1)
            {
                //Console.WriteLine("You have lost the game!!");//lose
                toRet = "You have lost the game!" + BubbleHolder.score;
            }
            else
            {
                toRet = "score: " + BubbleHolder.score;
            }
            return(toRet);
        }
Example #2
0
        private void proceed()
        {
            int gameStatus = BubbleHolder.checkGameStatus();

            if (gameStatus == 0)
            {
                if (CurrentLevel == 1)
                {
                    changeLevel(2);
                }
                else
                {
                    Exit();
                }
            }
            else if (gameStatus == 1)
            {
                changeLevel(1);
            }
        }