You can actually defeat the dragons with the sword (pressing E) after drawing your sword (pressing Q), but your jumping strategy works too! The princess part was a bug but it was really funny so I just left it like that. I'm happy that you enjoyed my game :)