This script is used to know whether the player wins or loses. The variables being used is the restart screen game objects, then numbers for enemies, allies and how many are dead. At the start of the scene, it will turn the restart screen off. If the player makes a mistake, then they can restartContinue reading “Win Condition”
Category Archives: V.2
Cursor
A very short script this one is. Very short indeed. Just gonna be turning the game objects off and on, easy stuff. In the update function, if the escape key is pressed, it will turn the cursor visible, the quit menu will be active and the normal menu will be in active, simple stuff. ThisContinue reading “Cursor”
Level Controller
This script is being used to switch between different scenes. The variables are the scene number, the transition and the transition time. Pretty straight forward. Next, this function will be called when the specified button is pressed. It will start the coroutine and call the Load Level function. So, here it says to wait forContinue reading “Level Controller”
Battle Manager
The longest script in the game. Yay… First thing is getting them variables. We have the player and enemy game objects, as well as many other things. It also has materials and counters and a line renderer. Many things this script does… The awake function. This is called before the start function. Here, we getContinue reading “Battle Manager”
Powers
So, second longest script. Woo… All of the different powers that is in the game. Nice… Enjoy… First skill, quick fire. It doubles the amount of shots the player can shoot. Some of that nice extra damage. Another simple skill. It just increases the accuracy to 100, so the player never misses its next shot.Continue reading “Powers”
Player Stats
This script is what dictates the type of stats the player and enemy will use. It also has other functions, like applying effects and passives. Time to jump into it! Well. There is a lot here… Yep… There are many different variables… Sick… Um…. So… The variables here are many. For game objects, there isContinue reading “Player Stats”
Boss Actions
The boss is a lot more aggressive and has a wide range of skills and guns to choose from. This is how the boss enemy works. Obviously, the first thing is to get the variables. This for the mesh of the boss model, the actions and the stats. Here, is where the variables are specifiedContinue reading “Boss Actions”
Passives
There are 8 passives in the game, one for each player character and one for each type of enemy. Here are how they work. The first passive is very simple. It just increases the current defence by 20 %. Very simple indeed. The second passive attracts the fire of the enemy. It disables the target-ableContinue reading “Passives”
Mini Boss Actions
The mini boss acts slightly differently to the minions, acting more aggressively and equipped with two skills. So, the first thing is creating the variables. These variables are the actions and stats. We then state what the variables mean, which is that it will call from the specified scripts indicated. So, the first action. ItContinue reading “Mini Boss Actions”
Gun Profiles
This is the script which has all the gun information. It applies the specific stats from each gun onto the player and/or to enemy. The first gun being the trusty revolver. The revolver shoots 6 times, does 25 damage and has the second highest range. It also has a chance to induce bleeding. The nextContinue reading “Gun Profiles”