UNPKG

@woosh/meep-engine

Version:

Pure JavaScript game engine. Fully featured and production ready.

12 lines (11 loc) 317 B
/** * * @param {number} finger_print * @returns {{mip: number, x: number, y: number}} */ export function decompose_finger_print(finger_print) { const mip = (finger_print >> 24) & 0xFF; const x = (finger_print >> 16) & 0xFF; const y = (finger_print >> 8) & 0xFF; return { mip, x, y }; }