After the class was over we discussed what to do next, mostly worked on catching everyone up and checking up on all of our work since we have to get ready for build 2. After the meeting, I was assigned to do the enemy AI. I ended up using some generic cylinders for the enemy models since I needed a stand-in. Basically, I made it so the enemy would fly around in a straight line and shoot at the player every second, most of the variables can be changed so we can change anything if we want to balance things out.
Since I made it so the enemies can attack the player I also needed to write some player health and a loose condition. I added to the player script a health counter and some methods that would check if they have been hit. If the player has been hit a select amount of times (3 for now), they lose.
Komentar