Exemplo n.º 1
0
 public EnemyProjectile(ShootingEnemy aShootingEnemy)
     : base("EnemyProjectile",
            new Vector2(aShootingEnemy.Position.X + aShootingEnemy.Size / 2, aShootingEnemy.Position.Y + aShootingEnemy.Size / 3),
            1, 500, 16)
 {
     InitializeSpeed(aShootingEnemy.Direction, aShootingEnemy.Speed);
 }
Exemplo n.º 2
0
        private void CreateShootingEnemy(List <string> aVariableString)
        {
            float positionX = float.Parse(aVariableString[0]);
            float positionY = float.Parse(aVariableString[1]);

            ShootingEnemy shootingEnemy = new ShootingEnemy(new Vector2(positionX, positionY));

            shootingEnemy.ShootProjectile += ShootProjectile;
            myEnemies.Add(shootingEnemy);
        }