For today’s article, I’ll be going over how I used Interfaces when developing my shoot ’em up game in Unity.
Full Code Source:
An interface in C# serve as a data contract where all classes to fulfill when implementing. The I in front of Example isn’t required to…
For today’s article, I’ll be going over how to implement attracting multiple power-ups nearby the player ship. To see the full code-base for reference and to follow along more closely, please visit my github repo: https://github.com/hlimbo/Space-Shooter-Tutorial
For today’s article, I’ll be going over how I added screen shake whenever the player ship gets hit. To see the code, please visit: https://github.com/hlimbo/Space-Shooter-Tutorial
We start the camera shake via coroutine and will only last for up to
shakeDuration seconds. This coroutine runs at the end of every…
For today’s article, I’ll be going over how I limited the number of lasers that player ship can fire. If you’re interested, you can take a look at https://github.com/hlimbo/Space-Shooter-Tutorial to see more of the code in depth.
Modifications to the
UiManager scripts need to be made in order…
For today’s short article, I’ll be going over how to allow the player to quit the game by pressing the ESCAPE key.
Note: this is super useful only when the Unity game is a standalone build and especially when on full screen mode.
Application.Quit() function will not work when playing the game from the editor. To test out the functionality, you must build a standalone executable of the game.