Fighter / Hero
Base Properties
fighterNameThe name of the enemy
descriptionA short description
unlockCostattackTypeDefines the use of a pre-defined set of attack sounds. Pick one that matches the characters Weapon the most
Available attack-types:
punch
rapier
sword
axe
hpAmount of hit-points the character has
attackPointsHow much damage does one hit make (reduces enemy HP by the given amount but not below 1)
timeToLiveHow long you have without hitting an enemy
timeRecoveryHow much time gets recovered by hitting an enemy
previewImageNameThe file name of the preview image
SHOULD be square
needed for steam workshop
would be stretched otherwise
Can have transparency
Animations
All animations work the same (see Example: Fighter Nita for a full example).
All animations are a list of timePerFrame and frameNames, where a random animation is picked from, meaning there can be 1 or more animations from which is one randomly chosen per animation type.
idleIdle animation
attacksOneSideAttack animation
Is mirrored for the opposite direction
attacksDoubleSideAttack animation when attacking both sides at the same time
deathDeath animation
Stops at the last frame
timePerFrameTime in seconds between frames
Can be 0 if there is only 1 Frame
See Times for examples
frameNamesList of frames
The file names of the frames
If there is only 1 frame then there is only 1 file name