Try to get your ninja to the door at the end of every level bij running, jumping and swinging past all of the traps. Find the buttons and switches to open gates when necessary. Also make sure your ninja doesn't fall down from too high, because that could get messy.
Use W/A/S/D to walk and jump. Use the mouse to throw your grappling hook.