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
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main(string[] args)
 {
     using (ScrollingShooterGame game = new ScrollingShooterGame())
     {
         game.Run();
     }
 }
 public ScrollingShooterGame()
 {
     Game = this;
     graphics = new GraphicsDeviceManager(this);
     // Use HD TV resolution
     graphics.PreferredBackBufferWidth = 1280;
     graphics.PreferredBackBufferHeight = 720;
     Content.RootDirectory = "Content";
 }
 public ScrollingShooterGame()
 {
     Game     = this;
     graphics = new GraphicsDeviceManager(this);
     // Use HD TV resolution
     graphics.PreferredBackBufferWidth  = 1280;
     graphics.PreferredBackBufferHeight = 720;
     Content.RootDirectory = "Content";
 }
 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;
 }