Complex sentence: Failing to finish the race cancels all XP earned on the track; similar to the way that XP is lost after dying in some role-playing games.
Split into simpler sentences: Failing to finish the race cancels all XP earned on the track. This is similar to the way that XP is lost after dying in some role-playing games.