Exemple #1
0
 public Enemy1 addEnemy(Vector2 p, int type)
 {
     //Vector2 pos = new Vector2(Game1.random.Next(-250, 250), Game1.random.Next(-250, -100));
     Enemy1 e = new Enemy1(enemySprites[type], p, new Vector2(0.0f, 0.0f), 30, levelManager, type);
     e.setCharacterManager(this);
     enemies.Add((Character)e);
     return e;
 }