Exemplo n.º 1
0
 public GamePanel() : base()
 {
     this.DoubleBuffered = true;
     buffedContext       = BufferedGraphicsManager.Current;
     _gameTime           = new GameTime();
     gameState           = new GameWorldState(this, _gameTime);
     inputManager        = new InputManager(gameState);
     _gameTime.Interval  = 1000 / 80;
     _gameTime.Tick     += _gameTime_Tick;
     _gameTime.Start();
 }
Exemplo n.º 2
0
 public void setState(Megaman.src.State.State state)
 {
     gameState = state;
     inputManager.setState(state);
 }