示例#1
0
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main(string[] args)
 {
     using (Game1 game = new Game1())
     {
         game.Run();
     }
 }
示例#2
0
        public World(Game1 containingGame, int w, int h)
        {
            game = containingGame;
            Player1 = new Player(this);
            random = new Random();
            Projectiles = new ProjectileManager(this);
            WorldWidth = w;
            WorldHeight = h;

            explosions = new List<Animation>();

            enemies = new List<Enemy>();
            previousSpawnTime = TimeSpan.Zero;
            enemySpawnTime = TimeSpan.FromSeconds(1.0f);
            projectile = false;

            powerUps = new List<PowerUp>();

            bossActive = false;
        }