Skip to content

Instantly share code, notes, and snippets.

@bleroy
Created July 28, 2021 05:45
Show Gist options
  • Save bleroy/a826e3aea5f69956f5a674addeff5315 to your computer and use it in GitHub Desktop.
Save bleroy/a826e3aea5f69956f5a674addeff5315 to your computer and use it in GitHub Desktop.
const l0 = party.peek([0, -1]);
const r0 = party.peek([0, 1]);
const l1 = party.peek([-1, -1]);
const f1 = party.peek([-1, 0]);
const r1 = party.peek([-1, 1]);
const l2 = party.peek([-2, -1]);
const f2 = party.peek([-2, 0]);
const r2 = party.peek([-2, 1]);
const ll3 = party.peek([-3, -2]);
const rr3 = party.peek([-3, 2]);
const l3 = party.peek([-3, -1]);
const f3 = party.peek([-3, 0]);
const r3 = party.peek([-3, 1]);
setVisibility(viewport, 'l0', l0.blocks);
setVisibility(viewport, 'r0', r0.blocks);
setVisibility(viewport, 'fl1', l1.blocks);
setVisibility(viewport, 'ff1', f1.blocks);
setVisibility(viewport, 'fr1', r1.blocks);
setVisibility(viewport, 'l1', l1.blocks);
setVisibility(viewport, 'r1', r1.blocks);
setVisibility(viewport, 'fl2', l2.blocks);
setVisibility(viewport, 'ff2', f2.blocks);
setVisibility(viewport, 'fr2', r2.blocks);
setVisibility(viewport, 'l2', l2.blocks);
setVisibility(viewport, 'r2', r2.blocks);
setVisibility(viewport, 'fl3', l3.blocks);
setVisibility(viewport, 'ff3', f3.blocks);
setVisibility(viewport, 'fr3', r3.blocks);
setVisibility(viewport, 'l3', l3.blocks);
setVisibility(viewport, 'r3', r3.blocks);
setVisibility(viewport, 'll3', ll3.blocks);
setVisibility(viewport, 'rr3', rr3.blocks);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment