public GameStateStart(Game game) { this._view = new View(); this.Game = game; var pos = (Vector2f)this.Game.Window.Size;//new Vector2f(this.Game.Window.Size.X, this.Game.Window.Size.Y); this._view.Size = pos; this._view.Center = pos * 0.5f; this.Game.Window.Resized += Window_Resized; this.Game.Window.KeyPressed += Window_KeyPressed; }
public GameStateEditor(Game game) { this.Game = game; var pos = (Vector2f)this.Game.Window.Size; this._guiView.Size = pos; this._guiView.Center = pos * 0.5f; this._gameView.Size = pos; this._gameView.Center = pos * 0.5f; this.Game.Window.Resized += Window_Resized; this.Game.Window.KeyPressed += Window_KeyPressed; }