public Game() { state = new prim.GameStateMachine(); mainConfig = new util.Config("main"); string[] res = mainConfig.values["resolution"].Split(','); this.width = int.Parse(res[0]); this.height = int.Parse(res[1]); this.fullScreen = mainConfig.GetBoolValue("fullscreen"); this.vsync = mainConfig.GetBoolValue("vsync"); }
public Display(Game game) : base(game.width, game.height, GraphicsMode.Default, "HJ", game.fullScreen ? GameWindowFlags.Fullscreen : GameWindowFlags.Default) { this.Cursor = MouseCursor.Empty; //this.CursorVisible = false; if (!game.fullScreen) { this.Y = 100; } this.game = game; mainConfig = new util.Config("main"); }