I now officially have a way in which to measure winning and losing the game. It’s by no means perfect, but I got something up and running, and I understood a bit more about unity and the physics and colliders.
Unity is a BEAST! But it’s also a pleasure to work in. I’m getting much more comfortable writing out code for it.
The sad thing is, I want to code pythonically with very expressive property and method names, and I want to stop using CamelCasesForEverthing. But oh well. I should write expressively, but the camel case will have to remain in order to not confuse myself or others reading my source.
Thanks to a wonderful tutorial from this guy inScope Studios on Youtube, I was able to understand a lot more about how to make better object oriented code for Unity. I was also able to make beautiful health bars that work really nicely! I also found out what lerping variables can do. (Linear Interpolation).
I made the bar smoothly fall and change color as the player takes damage.
Here’s a quick video of my progress so far!