コード例 #1
0
ファイル: Game1.cs プロジェクト: flair2005/DeepSeaAdventure
 /// <summary>
 /// LoadContent will be called once per game and is the place to load
 /// all of your content.
 /// </summary>
 protected override void LoadContent()
 {
     // Create a new SpriteBatch, which can be used to draw textures.
     spriteBatch  = new SpriteBatch(GraphicsDevice);
     viewportRect = new Rectangle(0, 0,
                                  GraphicsDevice.Viewport.Width,
                                  GraphicsDevice.Viewport.Height);
     currentState.LoadContent();
 }
コード例 #2
0
ファイル: Game1.cs プロジェクト: flair2005/DeepSeaAdventure
 public void changeState(gameState state)
 {
     currentState = state;
     currentState.LoadContent();
 }
コード例 #3
0
ファイル: Game1.cs プロジェクト: flair2005/DeepSeaAdventure
 public void changeState(gameState state)
 {
     currentState = state;
     currentState.LoadContent();
 }