Skip to content
RafaGallo edited this page May 15, 2015 · 9 revisions

Combat

The combat mode is one of the control states of a [unit] (Units). A unit can enter combat mode by attacking, defending or being attacked and will leave it when starting to run.

While in combat, the unit's looking direction is not defined by it's movement direction so when it moves right it will not turn right, only walk aside.

Another difference is that the unit's movement is discretized while in this mode, so when the unit walks, it will actualy jump to that direction. These leap creates the mechanic of evading while in combat.

###Warrior A warrior (either [Hero] (Hero Warrior) or [Minion] (Warrior)) unit in combat is able to: charge his sword attack, raise his shield for defence or leap for evasion.

There are two types of sword attack: fast or strong. The type of attack is defined by how long the unit charged it. If it was charged too little, then it is a fast weak attack. If it was charged enough, then it is a slow strong attack.

A strong attack can break the target's defence. Any attack can break the target's attack charge. A unit can have his defense up while charging his attack, but when his attack s released, his defense is lowered. Two attacks brandished at the same time by enemies can cancel if they are of the same type. Otherwise, the strong attack cancels the weak without being canceled.

##Control States The other control states of a unit are walking and running.

Walking

While walking, the unit's looking direction follows the unit's movement direction.

Running

The run starts only if the running button is pressed AND there is some movement input, so when a unit is running, it is always running to some direction. If the movement input becomes too diferent from the current running direction, the run ends and it goes back to walking. While running, the unit's looking direction follows the unit's movement direction.

Clone this wiki locally