Ejemplo n.º 1
0
        /// <summary>
        /// Win/Lose the Game
        /// </summary>
        private void WinLose()
        {
            String time = ((GameInterface)gameHUD).convertTime(((GameInterface)gameHUD).Time.Milliseconds);

            gameHUD.Dispose();
            gameHUD       = new WinScreen(mSceneMgr, mWindow, player.Stats, win, time);
            won           = true;
            player.IsDead = true;
        }
Ejemplo n.º 2
0
        /// <summary>
        /// This method create the initial scene
        /// </summary>
        protected override void CreateScene()
        {
            physics = new Physics();
            physics.StartSimTimer();
            player     = new Player(mSceneMgr);
            cameraNode = mSceneMgr.CreateSceneNode();
            cameraNode.AttachObject(mCamera);
            player.Model.GameNode.AddChild(cameraNode);

            //creating the ground
            environment = new Environment(mSceneMgr, mWindow);

            inputmngr.Controller = (PlayerController)player.Controller;
            gameHUD = new GameInterface(mSceneMgr, mWindow, player.Stats);
            ((GameInterface)gameHUD).Leveln = LvlN.ToString();
            LvlN = 1;
            createNextLevel();
        }