finished the game (i will probably not be touching this again)

This commit is contained in:
2026-11-08 12:51:19 -05:00
parent 36e093f84c
commit 5d7aa3b93b
37 changed files with 141 additions and 11 deletions
+7
View File
@@ -53,6 +53,10 @@ struct Ability {
float moveSpeedMultiplier = 0.5f; // of walking speed while it's going
bool pivots = false; // keeps turning to face where the player looks while it's going, so it can be aimed
float pivotEndFrame = 0.0f; // stops pivoting here, 0 pivots all the way through
// Hyper armor: hits still hurt, but don't flinch, stun, knock back or knock down the user, so the move carries on
bool hyperArmor = false;
float hyperArmorStartFrame = 0.0f;
float hyperArmorEndFrame = 0.0f; // 0 keeps it to the end
std::string sound; // played where it goes off, as it does. Empty plays nothing.
float screenshake = 0.0f; // how hard the camera shakes as it goes off, when it's the player's
@@ -142,6 +146,9 @@ public:
// Whether the ability it's in turns it to face where it's aimed right now
bool IsAbilityPivoting() const;
// Whether the ability it's in has hyper armor right now
bool HasHyperArmor() const;
// Whether abilities[index] can be used now, and how much of its cooldown is left, 1 just used to 0 ready
bool IsAbilityReady(int index) const;
float GetCooldownFraction(int index) const;