protected override void Initialize() { // 視窗設定 this.IsMouseVisible = true; // 顯示滑鼠 this.Window.Title = "hello world"; // 視窗抬頭 this.Window.AllowUserResizing = true; // 使用者可調整視窗大小 // 加入GameComponent // Start gameState_Start = new GameComponent_Start(this); gameState_Start.Initialize(); this.Components.Add(gameState_Start); // 導覽 gameState_Guide = new GameComponent_Guide(this); gameState_Guide.Initialize(); this.Components.Add(gameState_Guide); // 選單 gameState_Menu = new GameComponent_Menu(this); gameState_Menu.Initialize(); this.Components.Add(gameState_Menu); base.Initialize(); }