top of page

Coding Skills: Future Developments 8.0

Updated: Oct 19, 2023

I want to add in more subtle details as the game progresses, to make it feel more like an open world game, rather than a simple hack and slash. To do that, I need to add in features that many well renowned games add in; features that while on the surface level may not seem like they make the greatest impace, but ones that make the quality of life and playability far better. These features include rolling invulnerability, critical damage multipliers and loot boxes.


Rolling invulnerability:

This is a very common feature added to most sword and shield games, given that the entire point of rolling away from an attack is to not take damage. To do this, I would need to add in a flag for the start of the rolling animation, where a invulnerability method is called, and at the end, is closed. The method can be written as while in time frame so and so for example, health can be set to infinite, or the variable damage will not be called if the player hitbox is hit by an enemy. However, this does not mean that the player can constantly roll forever, as that would a bug. To counter this, a roll will take up 30% of the stamina bar, thereby making sure players use the rolls wisely.


Critical damage:

Every game has a variable to factor in critical damage. This is a very low chance that an attack will deal double the damage that would originally have been done. To do this, the code will need a separate method for critical damage, where a small percentage chance in the attack method will make it so that damageDealt = 2 * damageDealt. Loot Boxes:

A staple of almost any game, loot boxes contain valuable items that the player can open and collect. To make them as complex as most games do however, will be extremely difficult, since it involves probabilities and loot tables involving what items the player has and hasn't discovered. Therefore, to simplify it for now, I will be coding it so that loot boxes can only have new items. This makes it so that when a lootbox is opened, I can call a method for generating the items inside excluding anything that has been inside the player's inventory. I will also need an animation for the player opening a chest, which I may need to make myself since mixamo may not have it available.

______________________________________________________________________________________________________



ree

Comments

Rated 0 out of 5 stars.
No ratings yet

Add a rating
bottom of page