Ejemplo n.º 1
0
 private void RemoveEnemy(Coolerman enemy)
 {
     if (enemies.Contains(enemy))
     {
         enemies.Remove(enemy);
     }
 }
Ejemplo n.º 2
0
    internal void KillEnemy(Coolerman enemy)
    {
        score++;
        RemoveEnemy(enemy);

        if (currentQuantity < MAX_QUANTITY)
        {
            currentQuantity = (int)(score * .025 + 5);
        }

        if (currentSpawnTime < MIN_SPAWN_TIME)
        {
            currentSpawnTime -= (currentSpawnTime * .05f);
        }

        if (currentVelocity < MAX_VELOCITY)
        {
            currentVelocity += (currentVelocity * .01f);
        }
    }