示例#1
0
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main(string[] args)
 {
     using (AsteroidGame game = new AsteroidGame())
     {
         game.Run();
     }
 }
示例#2
0
        /// <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);
            _ag = new AsteroidGame(this, _graphics, _spriteBatch);

            // TODO: use this.Content to load your game content here
        }
示例#3
0
        /// <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);
            _ag          = new AsteroidGame(this, _graphics, _spriteBatch);

            // TODO: use this.Content to load your game content here
        }
示例#4
0
 private static void Main()
 {
     using (var game = new AsteroidGame())
         game.Run();
 }