stink3-tpos-to-binary
v1.0.1
Published
Converts terrain-pos data from Stink 3 to a binary string.
Downloads
3
Readme
About
Converts terrain-pos data from Stink 3 to a binary string.
Git repository: https://github.com/core-of-an-apple/stink3-tpos-to-binary
Usage
import {tpos_to_binary} from 'stink3-tpos-to-binary';
const tpos = "ooo`oo3o*Cl00?o*<nIVIVIo*;`l?o*7inOWinOWo3ol?oonOoiofm_Kfl?2ImYWfWo*8iooWfnOKoUVnFIYmVWfKo3ol9J@UYn@Wi0";
const binary = tpos_to_binary(tpos); // converts tpos to a binary string
// Output:
// 111111111111111111110000111111111111000011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000001111111111111111111111111111111111111111111111111111111111111111111111111111111110011001100110011001100110011001111111111111111111111111111111111111111111111111111111111111111111110000111100001111111111111111111111111111111111111111111111111001111110011111100111111001111110011111100111111111000011111111111100001111111111111111111110011111111111111001111111110110111101101111011011110110111100001111000010011001111101101001100111110110100111111111111111111111111111111111111111111111111111111001111111111111100111110110111110011111011011111111100101100110111110010110011001101001111101100110100111110110011011111111000011111111111100001001011010010000100101101001111110010000100111111001000000