Difficulty - Enemy Star Amount

Hi.

So i had implemented kill points value to each different enemy type. The idea was adding extra star points after each kill besides the trophy. The Attacker.cs has a variable public int starPoints = 50; and on each enemy prefab you can manipulate the amount.

In this difficulty setter i decided to halve the stars amount after each kill. I did this implementation in the ResourceDisplay.cs

public void KillStars (int amount)
    {
        if (PlayerPrefsController.GetDifficulty() == 0)
        {
            stars += amount;
        }
        else
        {
            stars += amount / 2;
        }
        DisplayStars();
    }
1 Like

I thought there should be some benefit to killing the enemies too. I plan to make something along those lines later myself. Maybe a point system or something.

Privacy & Terms