This is the main type for your game
Inheritance: Microsoft.Xna.Framework.Game
コード例 #1
0
        /// <summary>
        /// Creates a new GuiManager
        /// </summary>
        /// <param name="game">The game this GuiManager belongs to</param>
        public GuiManager(ScrollingShooterGame game)
        {
            this.game = game;
            spriteFont = game.Content.Load<SpriteFont>("SpriteFonts/Pescadero");

            progressSound = game.Content.Load<SoundEffect>("SFX/anti_tank_gun_single_shot");
        }
コード例 #2
0
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main(string[] args)
 {
     using (ScrollingShooterGame game = new ScrollingShooterGame())
     {
         game.Run();
     }
 }
コード例 #3
0
ファイル: Program.cs プロジェクト: nstanley/scrolling-shooter
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main(string[] args)
 {
     using (ScrollingShooterGame game = new ScrollingShooterGame())
     {
         game.Run();
     }
 }
コード例 #4
0
 public ScrollingShooterGame()
 {
     Game = this;
     graphics = new GraphicsDeviceManager(this);
     // Use HD TV resolution
     graphics.PreferredBackBufferWidth = 1280;
     graphics.PreferredBackBufferHeight = 720;
     Content.RootDirectory = "Content";
 }
コード例 #5
0
 public ScrollingShooterGame()
 {
     Game     = this;
     graphics = new GraphicsDeviceManager(this);
     // Use HD TV resolution
     graphics.PreferredBackBufferWidth  = 1280;
     graphics.PreferredBackBufferHeight = 720;
     Content.RootDirectory = "Content";
 }
コード例 #6
0
 public ScrollingShooterGame()
 {
     Game = this;
     graphics = new GraphicsDeviceManager(this);
     Content.RootDirectory = "Content";
 }
コード例 #7
0
 /// <summary>
 /// Creates a new GuiManager
 /// </summary>
 /// <param name="game">The game this GuiManager belongs to</param>
 public GuiManager(ScrollingShooterGame game)
 {
     this.game = game;
 }
コード例 #8
0
 /// <summary>
 /// Creates a new GuiManager
 /// </summary>
 /// <param name="game">The game this GuiManager belongs to</param>
 public GuiManager(ScrollingShooterGame game)
 {
     this.game = game;
 }