Hit 'N' Bit
Volunteer team 2.5D ARPG being developed in Unity/C#.
In 2024, I joined the volunteer team, Digital Scorpion Interactive, as Lead Technical Designer with my focus being on the combat system. I was on the team for a few months, eventually leaving to focus on paying work. In that time, I wrote-up a high-concept design document detailing my direction for the combat system. Check that out below!
Hit ‘n’ Bit Combat Doc
Combat Design Pillars
Pacing: The time spent acting vs reacting should be carefully balanced. A goal is to make this real-time combat system feel subconsciously turn-based.
Strategic: Using your actions meaningfully, thoughtfully and with strategy in mind. Everything has a purpose.
Simplicity: Your actions are simple, consistent, and reliable. The depth of the system is made up of many simple pieces working in unison.
Design Inspiration
Zelda 2 - reading enemies, strategizing
River City Ransom - using the environment, improvisation, 2d action in 3d space
Dead Cells - simple actions that build depth
Order of Implementation
Enemy spacing / preventing character overlap
Lining up 2D attacks in 3D space
Enemy attack patterns / combat states
Player/enemy attack tuning (attack timing / damage, stamina usage / regain)*
Player dodge
Player block (with stamina regain)
Enemy knockback / Player attack lunge
Enemy wind-up animations
Enemy strengths / weaknesses
Player Movement
When in combat the player should move more slowly than out of combat. This is to allow the player to be more precise with their movements and targeting.
Dodging
To close gaps, the player can dodge, which would either be a dash or a roll. Right now there are both a dash and a roll in the game. I feel it is a bit redundant to have two buttons used for 2 different dodges, so I’m thinking we should cut one at least to start.
Dodging should have a short cooldown to prevent spamming. This way the player needs to strategize about when they want to dodge.
Dash vs Roll
There’s some debate about whether to keep the dash or the roll or some combination of the two. Folks like the dash for movement, but the roll for dodging, thinking the roll could go under ranged attacks.
I still feel strongly that we should only have 1 dodge button, so here are some options I’m thinking about:
The dodge is a dash outside of combat, but a roll inside of combat (how is “Being in Combat” determined)?
The dash has invulnerability frames, so the player can still dodge through ranged attacks and it can still be used for platforming.
The dodge is a roll on the ground, but a dash in the air.
Lean into the gameiness and allow rolling on the ground and in the air. An air roll could be interesting to play with.
Attack Lunge
When the player attacks, the player character moves forward a bit in the direction of the attack. This is to sell the impact of the attacks and to mitigate the knockback inflicted upon the enemy.
The distance the player moves varies depending on the attack (EG, the player may move .2 units with a light attack, but 1 unit with a heavy attack).
This should not feel like it is completely repositioning the player. It is mostly just so that the player doesn’t have to physically press the move button after knocking back an enemy.
Jumping in Combat
Jump attacks??
Player Attacks
The player has 2 base attacks: a light attack and a heavy attack.
Light Attack
The light attack is quick but not incredibly strong. The light attack takes up a small amount of stamina (I’m thinking 10/100, we’ll balance with testing).
Heavy Attack
The heavy attack is slow but strong. The heavy attack takes up a medium amount of stamina (I’m thinking 20/100, we’ll balance with testing).
Attack Cooldown
The goal of this is to prevent button-mashing and spamming attacks. After each attack is a small cooldown, varied based on the specific attack (EG, the light attack might be followed by a .5 second cooldown, while a heavy attack might be followed by a 1 second cooldown).
This isn’t a WoW-style attack cooldown, but just a short pause before the player can attack again. No visual indicator needed, this should be something the player can easily internalize without thinking.
Player Targeting
By targeting, I’m mostly talking about the direction the player-character is facing during combat. Should the character always face the direction the player is inputting for movement? Should they face the nearest enemy? Should they face the direction the player is attacking and lock in that direction so the player can keep attacking and not worry about re-orienting? I kind of like that, but then what if another enemy comes up from behind?
Enemy Slow
When attacked by the player, enemies are slowed. What this means is: enemies will still move and execute attacks, but their movements and actions will be slower, up until the point when they actually attack. The actual attack will play at normal speed. How slow and whether or not we want to do this at all would be determined through testing.
This is for pacing reasons. I’m thinking this because I want the player to have to back up and avoid enemies when they attack. To reward the player for playing offensively, I think it would be good to have the enemies react to being attacked by slowing their movements. Then the player gets to make the decision of “Can I fit in one more punch” before ultimately either deciding to dash away from the enemy before their attack or getting hit by the enemy because they decided to push it.
Knockback
Enemies should be knocked back when hit. The amount of knock back would be determined by the player’s attack and the type of enemy.
Enemy Poise
Enemies have a Poise meter. This meter goes up with every successful hit that the player lands on the enemy. Each attack raises the meter a set amount, for example a light attack might raise the meter by 5 and a heavy attack might raise the meter by 15.
When the Poise meter fills up completely, the enemy will be put into a Stun state, where they cannot move or attack for a set amount of time, maybe 3 seconds or so (TBD with testing).
When an enemy isn’t actively being attacked, the poise meter steadily lowers.
Each enemy type has a different amount of poise, for example a minion might have 20 poise and a boss might have 300 poise.
Enemy Stun
When an enemy is stunned (right now only via poise breaks or a perfect block with the correct badge equipped) they are put in a state of no action. They cannot attack or move while stunned. Stun lasts a set amount of time, for example 3 or so seconds (TBD with testing). After the time is up, the enemy continues functioning as normal.
Does stun last a different amount of time for different enemy units?
Stamina
The player has a stamina meter, seen in the top left of the screen near the health meter. Attacking and dashing take chunks out of the stamina meter. While blocking, the stamina meter slowly empties. If the stamina meter completely empties, the player cannot attack or dash until the meter is completely full (or full to a point we determine, like halfway or ¾ of the way). The meter constantly fills up when the player is not attacking, dashing, or blocking.
Refilling Stamina
Stamina refills on its own, however there are ways the player can refill their stamina:
The player can find stamina potions which will refill stamina an amount determined by the strength of the potion.
Blocking will refill stamina every time the player successfully blocks (See Blocking for more).
Blocking
Blocking an attack prevents the player from taking any damage from the front. The player character’s backside remains vulnerable.
While blocking, the player’s movement is frozen, meaning they can’t move at all. However, the player can pivot 180 degrees in the direction of the horizontal input. This is to allow the player to spin to block an attack coming from behind. An option pitched by Taylor is that the player could get stunned, or basically get knocked out of blocking, if they are attacked from behind. I think that it could be cool to add some extra weight to blocking and defending your backside.
How this could work: When a hit lands, get the direction from the player character to the attacking weapon (not the attacker theirself, in case the weapon was thrown). Then compare that direction to the player character’s forward direction. If less than 90 degrees, block, else deal damage.
Stamina Regain
The player can block by holding down the block button. For as long as the block button is held down, the stamina meter will steadily drain. However, the player can recharge the stamina meter in chunks by blocking successfully, gaining a TBD amount of stamina each time an attack is successfully blocked..
When the player completely runs out of stamina and enters the Depleted Stamina state, they can still block to regain stamina. Blocking still lowers stamina, so the player is risking their regain progress, meaning it takes longer for them to get to a place where they can attack/dash again. But this way, the player can have their risk pay off and regain their stamina more quickly by successfully blocking attacks.
Badge Modifications
Some potential options of badges that would modify blocking:
Perfect block (block at the exact moment an enemy attack lands) to regain even more stamina
Perfect block stuns the attacking enemy
Grabbing
Can enemies only be grabbed when they are stunned??
A potential player action could be Grabbing. Here’s a rough concept of how it could work:
The player would press the Grab button when adjacent to and facing an enemy. The player character would grab and hold the enemy, preventing enemy movement and action. While grabbing an enemy, the player’s stamina would slowly, but steadily drain. When the stamina bar fully empties, the enemy is released and the player enters the Depleted Stamina state.
While still grabbing the enemy, the player can more quickly light and heavy attack the grabbed enemy. Pressing the grab button again would throw the enemy.
Enemy Animations
Enemy animations will be key in telegraphing the enemy’s intentions to the player. Enemy attack wind-up animations should clearly show that an attack is about to happen. This will give the player enough time to react, deciding to dodge, block, or get one last hit in.
Enemy States
During combat, the enemies should cycle through different AI states based on the current situation.
Hovering - Waiting while another enemy is attacking. Staying a set distance away from player.
Attacking - Moving to attack range (melee or ranged) and attempting an attack.
Combos
I’m actually leaning away from combos. I feel it conflicts with having a stamina meter. Let me know what you think.
I’m thinking some very simple, basic combos will be good to allow the player to strategize with their specific attack choices. These are not crazy attack combos that need to be looked up in menus, I’m thinking just “light light light heavy” as an example. Maybe after the player does a string of 3 light attacks there is a short cooldown before the player can light attack again, but using a heavy attack could bypass the cooldown.
This is something I’m still thinking about. I do not want the player to fall into just using the basic attack combo over and over because it’s the best bang for their buck. They should be choosing their attack based on the situation.
Enemy Movement
Enemies should keep some distance from the player and theirselves. Enemies should never be overlapping the player or other enemies.
Using the Environment
The player can utilize different aspects of the environment to strategically combat enemies.
Static Environ
Within each combat arena are static objects or parts of the environment. These are rocks, trees, buildings, various structures, etc. These will be good for making the combat arenas more varied. They also give the player an opportunity to strategize, ie, positioning in a narrow walkway to bottleneck enemies.
Non-Static
There are various objects, creatures, or traps that could be populated into combat arenas to give the player an extra obstacle and an opportunity to strategize. For example, if there are sploads in a combat arena, the player could lead enemies over the sploads to trap them in the explosions. Or if the player isn’t paying full attention, they could get caught in the explosion theirself.
Some other potential examples:
Objects in the arena - There could be objects like rocks that the player can kick to launch at enemies.
Spike Pits - Holes in the ground that the player can fall into or lead enemies into.
Monster Loose in the Arena - A beast that attacks the nearest enemy or the player.
Bombs - Someone could be throwing bombs in from out of the arena. The player can kick the bombs to launch them at enemies. The player needs to get the timing right so they don’t end up in the blast.
Enemy Strengths/Weaknesses
Enemies could have different strengths and weaknesses to the player’s attacks. This would require the player to change up their process depending on the enemy. Example, an enemy is armored and only heavy attacks can break through the armor. Another example, an enemy is fast and doesn’t sit still long enough for a heavy attack to land.
Enemy Attack Patterns
Recognizable attack patterns that the player can learn and adapt to.
Does each enemy instance have a unique, randomized attack pattern?
Attack Collision
We need to think about how collision works and how attacks land in a 3D space with 2D characters. Brawlers could be a good reference.
Alternative Weapons
Hit N Bit was described to me as a Metroidvania, so while I haven’t heard about new weapons and item upgrades being in the game, it sounds like that stuff could be a possibility.
Any new weapons should work with this system, as long as a light and heavy attack are designed for each weapon. It could also be that the light attack is a specific weapon and the heavy attack is another.
Badge System
The badge system was described to me as being a passive and active buff system, where the player finds various badges throughout the game and equips them to get their effects. I think these could affect all different aspects of the game, but they could be especially cool in terms of combat.
Potential badge effects could be:
Attack damage up
Attack rate up (lowers cooldown between attacks)
Elemental effects (IE, fire burns enemies over time, lightning jumps from one enemy to another)
Special attack when light and heavy button are hit at the same time
Extra damage directly after dodging
Camera Functions in Combat
When the player engages in combat, the camera should push in very slightly. This is to show focus and sell the intensity of combat. This effect could be made stronger during boss fights.