2 ms·
I did something similar with a side project a little while back -- If you pull up http://shadowcraft.mmo-mumble.com/us/cenarion-circle/adrine/ http://shadowcra
by cheald 15y ago
I did something similar with a side project a little while back --
If you pull up http://shadowcraft.mmo-mumble.com/us/cenarion-circle/adrine/ http://shadowcraft.mmo-mumble.com/us/cenarion-circle/adrine/ you'll notice that all the state gets pushed onto the URL. This is actually a (very big) JSON data structure, packed into an array (to strip key data) and, where possible, with numbers compressed as base62. The whole thing is then deflated and base64-encoded. In that example up there, I have about 2kb of data compressed into 316 bytes. The URL is a bit ugly, but it means you can pass around the entire state in the URL.