Esempio 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();
 }
Esempio n. 2
0
 public void setState(Megaman.src.State.State state)
 {
     gameState = state;
     inputManager.setState(state);
 }