A simple plaformer turn-based fight mechanic. A game consist of a Character, that can have multiple script components - animator, physics, fighting component, etc. Player have also player component and input component, while enemies are just copies with differnet set of components.
Fighting is done is a separare fighting machine. It's quite hacky, but enough to grasp the concept.
Game development by Glukozavr Graphics from itch.io by Brullov Sounds from itch.io by Leohpaz