コード例 #1
0
ファイル: GameMaster.cs プロジェクト: EphemeralGeek/Pacman
 /// <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);
     start.Initialize(this);
     setup.Initialize(this);
     playerSetup.Initialize(this);
     gameSound = new GameSound(this);
     endScreen.Initialize(this);
     backgroundImage = Content.Load<Texture2D>(@"Images\Background");
 }