示例#1
0
        public GamePlayLevel2(Game1 game)
        {
            this.game = game;
            GameEntity character, enemy;

            camera = new Camera(game.GraphicsDevice.Viewport);

            character = new Character();
            enemy = new Enemy();
            game.Entities.Add(character);
            game.Entities.Add(enemy);
            game.Enemies.Add(enemy);

            for (int i = 0; i < game.Entities.Count; i++)
                game.Entities[i].LoadContent();

            for (int i = 0; i < 7; i++)
                powerSpawn[i] = (int)random.Next(40);

            Game1.Instance.PowerFlag = true;

            game.SpriteFont = Game1.Instance.Content.Load<SpriteFont>("Font/Arial");
        }
示例#2
0
 public EnemyProjectile(Enemy enemy, float rot)
 {
     this.enemy = enemy;
     Look = new Vector2(0, 1);
     this.rot = rot;
 }
示例#3
0
        public float enemySpawner()
        {
            Enemy enemy = new Enemy();
            enemy.LoadContent();
            Entities.Add(enemy);
            Enemies.Add(enemy);

            return 0f;
        }