Use arrow keys to move the heart, dodge everything!
The HP Bar is a bit messed up, but you will die eventually if you are hit by Papyrus's bones! This is like MajesticPie's "Undertale Boss Fight" game, but Papyrus-themed with more attacks that are more difficult to dodge, thus why you have more HP.