示例#1
0
 private void ShowGameScreen()
 {
     _gameModel = new GameModel();
     _gameView = new GameView(_gameModel);
     _gameModel.Width = _gameView.Width;
     _gameModel.Height = _gameView.Height;
     _gameModel.Initialize();
     _gameModel.Start();
     _page.LayoutRoot.Children.Add(_gameView);
 }
示例#2
0
        private float _seekPointRampDistance = 50; //distance at which the bug will start slowing its approach.

        #endregion Fields

        #region Constructors

        public PlayState(GameModel gameModel)
            : base(gameModel)
        {
        }
示例#3
0
 public ReadyState(GameModel gameModel)
     : base(gameModel)
 {
 }
示例#4
0
 public StartState(GameModel gameModel)
     : base(gameModel)
 {
 }
示例#5
0
 public ReadyState(GameModel gameModel)
     : base(gameModel)
 {
 }
示例#6
0
        private float _seekPointRampDistance = 50; //distance at which the bug will start slowing its approach.

        #endregion Fields

        #region Constructors

        public StartState(GameModel gameModel)
            : base(gameModel)
        {
        }