public EnemyTextBox RegisterEnemy(Enemy enemy, double bias)
        {
            var text = texts[(int)(texts.Count * BiasedRandom(bias))];
            var textBox = new EnemyTextBox(game, text);
            trie.Put(text, enemy);

            return textBox;
        }
Example #2
0
 public void Shoot(Enemy enemy)
 {
     Angle = GetRelativeAngle(new Vector2(enemy.X, enemy.Y));
     var p = new Projectile(Game, Position, Angle, 0.5f, "projectile", 23);
     Game.Components.Add(p);
 }