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"); }
public EnemyProjectile(Enemy enemy, float rot) { this.enemy = enemy; Look = new Vector2(0, 1); this.rot = rot; }
public float enemySpawner() { Enemy enemy = new Enemy(); enemy.LoadContent(); Entities.Add(enemy); Enemies.Add(enemy); return 0f; }