Heya
So I did watch till the end and saw what happened it was very unfortunate. What happened is exactly what you thought happened. When the player dies his location is reset to 0 so when you died it saved the player's location as 0 which was that random point in the map where you ended up spawning. This was an unforeseen bug I didn't really think of in my testing so thank you for including it in the video. I plan on releasing a patch in a day or so with fixes. I'm just waiting to see if any other players find any other bugs to report. I kinda use itch.io as my testing grounds before I release my games to steam.