Sorry the checkpointing is a little janky!! I wanted to make it way better but ran out of time. Do you mean it restarted you all the way to the beginning of the game? Or to the beginning of the level you died on?
I'll be sure to make a better checkpoint system for my next game thank you for the feedback!