Adding a Wave System
<p><strong>Objective: </strong>Add a wave system that increases in difficulty</p>
<p>Up until now my enemies have just been spawning at total random. I want to add a wave system that increases in difficulty based off of how many enemies that have been killed.</p>
<p>To start off with, I’m going to add a <strong>variable </strong>to the <strong>Player</strong> script that’s going to keep track of how many enemies that have been killed. Then I’m going to add that variable into a <strong>method</strong></p>
<p><img alt="" src="https://miro.medium.com/v2/resize:fit:373/1*afP0887SYHwkoE9gxbd9lQ.png" style="height:151px; width:339px" /></p>
<p>Now, I’m going to simply communicate this method into my <strong>Enemy </strong>script. This will keep track of each enemy that is detroyed by a laser and increase the kill count.</p>
<p><img alt="" src="https://miro.medium.com/v2/resize:fit:770/1*b23Vq7cRS8F8s46UpwrNKA.png" style="height:233px; width:700px" /></p>
<p>Now you can see the kill count go up</p>
<p><a href="https://medium.com/@tylersnapier/adding-a-wave-system-aef04eee7b4a"><strong>Read More</strong></a></p>