Arrow keys to move, space bar to swipe
How it Works
Swords or other melee weapons can work the same way as projectiles. In this example, the player just emits an animated "Swoosh" that plays a sound and could deal damage to enemies.
For a more convincing effect, the player character should have an animated sword attack as well.
Sprites used are from Open Game Art