The game is not linear, codes won’t work
Not the OP, but couldn't you have a code as a long number where each few digits represent a certain progression of different parts of the game