Question about Treasure Planet ending
So near the end when the planet is exploding Jim uses his “space skateboard” to change the destination that the portal heads to, however the board’s battery runs out and when it hits a chunk of planet starts working again. Any explanation?