Arrow keys to move, f to attack. When attacking an enemy, it must be in the swords range to take damage.
How I made attacking more accurate than just touching the enemy when attacking: A hitbox. (open project and see 'HITbox') You may use this for your own Zelda type games, as long as credit is provided in the Notes and Credits of the game. You may altar the sprite's costumes to your liking when you use the engine for your own project. To make custom enemies, make a duplicate of the already made enemy and change its stats.(and sprite) I suggest not using this version for your projects, it doesn't have much yet, you should wait for an update. Next update will have: Enemy attacks.(projectile and coming into contact with the player) Have fun.(technically all you can do here is test the engine, though.)