Exemplo n.º 1
0
 private void ShowGameView()
 {
     GameModel gameModel = new GameModel();
     _gameView = new GameView(gameModel);
     _pageView.Navigate(_gameView);
     _gameView.Initialize(_physicsSimulator);
     InitializeMousePicker();
     _renderLoop.Update += _gameView.Update;
     _renderLoop.Draw += _gameView.Draw;
     _renderLoop.Draw += _mousePicker.Draw;
 }
Exemplo n.º 2
0
 public GameView(GameModel gameModel)
 {
     InitializeComponent();
     _gameModel = gameModel;
 }