This js code will convert game variables into a Nintendo-like "cheat" code
These are the variables that are stored in the code:
planetLoc: current planet (0-15)
mapLoc: current location on planetary map 0-4095 (64x64 grid)
bearing: 0-7 representing which of the 4 cardinal directions (NWES) or 4 ordinal directions (NE,SW,etc) player is facing. 0=N, 1=NE, 2=E, etc...
inventory: a 16-bit number that can be decoded into the map locations of up to 16 inventory objects
...and a 6-bit check digit
Concatenating all values into a binary string:
divide string of 1's and 0's into 6-bit chunks and convert each to a character from the Base64-like encoding table:
(ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/).