logo bannerlogo banner
Page Navigator

As of yolkbot 1.4, yolkbot no longer uses the Shell Shockers WebAssembly module and instead uses an alternative Javascript solution (written by me)!

coords

The coords function allows you to get the "coords" value (which is sent to the game) given a yaw and pitch.

import { coords } from 'yolkbot/wasm';

const yaw = 0.5; // your yaw value
const pitch = 0.5; // your pitch value

const result = coords(yaw, pitch);
console.log(result); // ABCDEFGH

Coords are 8 letter strings that encode the yaw and pitch values through various bitwise shifts.

processJS

The processJS function allows you to decode the shellshock.js file.

import { processJS } from 'yolkbot/wasm';

const request = await fetch('https://shellshock.io/js/shellshock.js');
const rawBytes = await request.text();

const readableCode = await processJS(rawBytes);
console.log(readableCode); // (()=>{ ...

validate

The validate function allows you to validate a UUID sent by the matchmaker.

import { validate } from 'yolkbot/wasm';

const input = 'test';
console.log(validate(input));

WASM Loader

As of yolkbot 1.4.0, the WebAssembly module is not used by yolkbot (as it was in previous versions). Documentation is no longer provided for this module, as it is marked for removal in yolkbot 2.