Delve into the Abyss Development Blog - Week 3

 

   In regards to development this week I had been tasked with handling the XP gain system, and the stat upgrade system. I had started with the XP gain system since it was the one that made the most sense to actually start off with. It also wasn't really all that hard to actually get set up since I dealt with an XP system in the game I made for last semester's final project. I think the biggest issue I had in regards to it is that we have two enemy scripts apparently, so I had to add the system in the enemy script that actually handles life/death of an enemy. Once I had the basic systems set up though I sent it in to Michael to add a UI element.

   Later on in the week I implemented the stat upgrade system. This one was a bit more challenging since I wanted to add in two different kinds of functionalities. One would source the XP from the player, and the other would source the amount of items (in this case, Iron Ore) from the player's inventory. I primarily wanted to do both so we could have functionality for both in our game.

   Trying to recognize the XP was one of the easier parts to actually do since all it had to do was detect the player script and then take the XP from the player script. Altering the inventory to have a remove segment was also pretty easy. It was getting the code to detect that the inventory had 0 of an item that was the hardest bit to do since most times it went to -1, which should not be possible in our game. But with some help from Lucas we managed to get that bug ironed out, so the game can detect if the player has 0 XP or 0 Items and won't let you upgrade any further until you get more of both.

Comments

Popular posts from this blog

Delve into the Abyss Development Blog - Week 27

Delve into the Abyss Development Blog - Week 1

Delve into the Abyss Development Blog - Week 14