Avoiding damage
Most of the damage you will get will originate from accidentally colliding with enemies, which usually are slimes, that appear from the ground. Watch the ground and make sure that your character stays away from nearby slimes. Jump if necessary, however you can usually just time your movement in order to run directly into them with your weapon.