Adding a Wave System

<p><strong>Objective:&nbsp;</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&rsquo;m going to add a&nbsp;<strong>variable&nbsp;</strong>to the&nbsp;<strong>Player</strong>&nbsp;script that&rsquo;s going to keep track of how many enemies that have been killed. Then I&rsquo;m going to add that variable into a&nbsp;<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&rsquo;m going to simply communicate this method into my&nbsp;<strong>Enemy&nbsp;</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>
Tags: Wave System