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