This is the main type for your game
Inheritance: Microsoft.Xna.Framework.Game
Esempio n. 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");
        }
Esempio n. 2
0
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main(string[] args)
 {
     using (ScrollingShooterGame game = new ScrollingShooterGame())
     {
         game.Run();
     }
 }
Esempio n. 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";
 }
Esempio n. 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;
 }
Esempio n. 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;
 }